i am trying to install LFS on slackware,using the lfs6.3 version,i followed all the instructions but not the instruction,don't do it in root,do it as a usr.
i haven't solve a problem,when i do the work as a usr,i don't have enough permission,so i changed back to root,of course,this will cause problems,everything compiled ok so far(after endless wait,google,patch and curses),until i hit the wall in chroot!

at first,i think the problem is chroot,so i begin a goose chase trying to solve the problem,after long research,i found that the problem is not in chroot,but in the links,maybe my program links are pointing to the root libs instead of /tools/lib

1.i do command:
ldd /tools/bin/env,and get this result:
**==>/lib/**,
instead of
**==>/tools/lib
does it mean the links are all wrong?
2.i google something and reinstall bash with this:enable-static-link

after reinstall bash,if i do : ldd /tools/bin/bash
it says:not a dynamic executable
then,i do this:chroot /mnt/lfs/ /tools/bin/bash --login +h
i will get:
i have no name!darkstar$:

it means i chrooted to /mnt/lfs,but i can't do any command,can't ls,cd or install.

does it mean that bash is running,but can't found anything?does it mean the program in /bin are wrongly linked to the root lib instead of /tools/bin/lib?

3.do i have to start all over again to set the links right?

i heared that if you use a usr as the official book demanded,you compile programs under path:/tools/bin:/bin:/usr/bin,so the program compiled with gcc in the /tools path instead of / path,do i have to compile with gcc in /tools path to make everything work?

open up those files and wherever you see /lib ..... type as SLASH lib
put /tools/lib ..... type as SLASH tools SLASH lib
then compile and continues with rest of chapter
soon after done this , have a working
ldd {binary}
=> /tools/lib .....

===============
hope hellps

anwerreyaz

11-26-2008 04:40 AM

Jimmerlin,
I had the same problem. I did the same mistake of doing it as a root.
The book instructs to create a folder $LFS/sources and gives full permission for the new user to that dir.But when u try to create a folder outside this sources folder u would get the error permission denied!
So copy all your sources(tar balls) to sources and work from there!
If the book instructs to use a separate dir for build create it
But do them all within the sources directory.