View previous topic :: View next topic |
Author |
Message |
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Fri Jan 13, 2017 4:00 pm Post subject: baselayout-2.3 emerge failure [solved] |
|
|
John R. Graham wrote: | pakk,
baselayout isn't fully "fixed" until you can successfully emerge it. Try Code: | emerge -1vq baselayout | to see if you can do that. @world update only after that.
- John |
right
Code: | * Converting /usr/lib from a dir to a symlink
* ERROR: sys-apps/baselayout-2.3::gentoo failed (setup phase):
* non-empty dir found where we needed a symlink: /usr/lib |
Split from gcc setup [SOLVED] as this was really a good demarcation for a new topic. — JRG
Last edited by pakk on Sun Jan 15, 2017 12:44 pm; edited 1 time in total |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8718 Location: ~Brussels - Belgique
|
Posted: Fri Jan 13, 2017 4:07 pm Post subject: |
|
|
move everything in /usr/lib to /usr/lib64 then remove /usr/lib and let baselayout create a symlink
and that will probably fix the global problem of broken apps _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Fri Jan 13, 2017 4:46 pm Post subject: |
|
|
pakk,
Read you are missing a option.
cp works on files. If you want it to copy directories too, you need to tell it. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Fri Jan 13, 2017 4:49 pm Post subject: |
|
|
xaviermiller wrote: | move everything in /usr/lib to /usr/lib64 then remove /usr/lib and let baselayout create a symlink
and that will probably fix the global problem of broken apps |
now i lost emerge and all
Quote: | emerge -lvq baselayout
bash: /usr/bin/emerge: Aucun fichier ou dossier de ce type |
fortunately I made a backup of /lib |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Fri Jan 13, 2017 7:18 pm Post subject: |
|
|
Code: | # cp /usr/lib/* /usr/lib64/
# rm -r /lib
# emerge -lvq baselayout
bash: /usr/bin/emerge: Aucun fichier ou dossier de ce type |
|
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8718 Location: ~Brussels - Belgique
|
Posted: Fri Jan 13, 2017 7:22 pm Post subject: |
|
|
Create the lib symlink to lib64 _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Fri Jan 13, 2017 7:40 pm Post subject: |
|
|
pakk
Code: | # cp /usr/lib/* /usr/lib64/
# rm -r /lib |
I really hope you didn't do that.
/usr/lib/ contains directories that will not be copied by that cp command. You need cp -a or cp -r to copy directories.
Did you intend to operate on /lib or /usr/lib?
They are not the same place. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Fri Jan 13, 2017 8:11 pm Post subject: |
|
|
NeddySeagoon wrote: | pakk
Code: | # cp /usr/lib/* /usr/lib64/
# rm -r /lib |
I really hope you didn't do that.
/usr/lib/ contains directories that will not be copied by that cp command. You need cp -a or cp -r to copy directories.
Did you intend to operate on /lib or /usr/lib?
They are not the same place. |
i read back, in fact he told me to move, so i did, then remove usr/lib/.
how to make a symlink if /usr/lib is removed ? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Fri Jan 13, 2017 8:23 pm Post subject: |
|
|
pakk,
These details are important. mv would have worked.
Code: | ln -s <real_path> <symbolic_path> |
For /usr/lib its Code: | cd /usr
ln -s lib64 lib |
will include.
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Fri Jan 13, 2017 10:08 pm Post subject: |
|
|
it's dead, now I dont have wifi driver anymore. |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Fri Jan 13, 2017 10:42 pm Post subject: |
|
|
and now is back....i havent changed anything.... |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Fri Jan 13, 2017 11:04 pm Post subject: |
|
|
baselayout is installed.
last step. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sat Jan 14, 2017 11:03 am Post subject: |
|
|
pakk,
Now you can do Code: | emerge -e @world --keep-going | and fix any failures once emerge stops.
If there were failures, it will leave a list on the screen. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Sat Jan 14, 2017 11:49 am Post subject: |
|
|
NeddySeagoon wrote: | pakk,
Now you can do Code: | emerge -e @world --keep-going | and fix any failures once emerge stops.
If there were failures, it will leave a list on the screen. |
what is the diff between @system and @world ? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sat Jan 14, 2017 12:00 pm Post subject: |
|
|
pakk,
@world is everything in /var/lib/portage/world and all of the dependences too.
It will include @system as a result.
You can look at /var/lib/portage/world if you want to but you must not edit it.
You can see the difference for yourself. Compare the outputs of
and
Neither of those commands will install anything. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Sat Jan 14, 2017 12:15 pm Post subject: |
|
|
ok thanks.
at the end of compilation, is there a log that lists failures ?
and after fixing all, do I have to run:
Code: | # dispatch-conf
# revdep-rebuild -i
# eclean-dist -id |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sat Jan 14, 2017 12:43 pm Post subject: |
|
|
pakk,
The list of failures, if there are any, will be on screen.
Yes.
is old. Its been replaced with Code: | emerge @preserved-rebuild |
Portage will tell you if you need to run that but its in place of revdep-rebuild.
Older versions of portage used to leave your system broken until revdep-rebuild completed. Newer versions keep the old code around, so everything still works and asks you to run emerge @preserved-rebuild to tidy up and remove the old code. revdep-rebuild is not incorrect.
eclean-dist will remove all the source tarballs you no longer need. Thats a good thing but not essential.
There is another command too. Code: | emerge --depclean -p | Over time, abandoned dependencies (orphaned packages) build up on your system.
This command will remove them, (without the -p). However, it may want to remove things that you want to keep so study the list before you run it.
There are one or two things to be aware of. Only the latest versions are kept.
So, if you have a newer gcc than the one you are using, your active gcc will be removed. The fix for that is gcc-config but you have used that command before.
The same is true of your kernel sources. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Sun Jan 15, 2017 11:15 am Post subject: |
|
|
NeddySeagoon wrote: | pakk,
The list of failures, if there are any, will be on screen.
|
yes but I use gentoo in CLI mode without desktop, and then without terminal with scroll, so I can't see all messages.
Compilation is over now and I just see 2 messages. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sun Jan 15, 2017 11:44 am Post subject: |
|
|
pakk,
You can scroll up with Shift+PageUp and down with Shift+PageDown
What are the messages?
The messages that matter are right at the end of the output.
I would expect something about files in /etc need to be updated and about emerge @preserved-rebuild _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Sun Jan 15, 2017 12:30 pm Post subject: |
|
|
NeddySeagoon wrote: | pakk,
You can scroll up with Shift+PageUp and down with Shift+PageDown
What are the messages?
The messages that matter are right at the end of the output.
I would expect something about files in /etc need to be updated and about emerge @preserved-rebuild |
thanks for tips but shift + pgUP has no effect.
messages say: run fix_thing.sh if you use an old version of gcc; install libtxn if you want to have a better render with 8w3d something.
actually no failures. |
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Sun Jan 15, 2017 12:40 pm Post subject: |
|
|
now im gonna reboot my system. solved |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
pakk Tux's lil' helper
Joined: 25 Nov 2016 Posts: 143
|
Posted: Sun Jan 15, 2017 1:23 pm Post subject: |
|
|
Jaglover wrote: | I noticed in your other thread you have no -march set in CFLAGS. This is suboptimal, you may want to set it to native and rebuild. |
I have to study deeply CFLAGS, thanks |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Sun Jan 15, 2017 6:33 pm Post subject: |
|
|
pakk,
You will spend longer rebuilding than the time you will save after the rebuild.
If you change your CFLAGS, the changes will take effect with updates. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|