Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-07-2002, 03:44 PM
|
#1
|
Member
Registered: Mar 2002
Location: Ireland
Distribution: Slackware 8.0, Mandy 9.0
Posts: 31
Rep:
|
chown....no such file or dir.
I have just successfully chroot'ed into my new LFS environment, but when I run the next command (chown -R 0:0 /static) I get an error......no such file or directory. I can't seem to access any bash commands except cd. Where to next ?
Tanks
Doc
|
|
|
10-07-2002, 04:11 PM
|
#2
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
Make sure $LFS/static/bin/chown is statically linked.
|
|
|
10-07-2002, 05:10 PM
|
#3
|
Member
Registered: Mar 2002
Location: Ireland
Distribution: Slackware 8.0, Mandy 9.0
Posts: 31
Original Poster
Rep:
|
It looks like I'm already in the $LFS directory, which is now my / , and I can cd into static/bin, but I can't even do an ls to see what's there. I ran the "export LFS =/mnt/lfs" (I assume that's how you do the static linking) but still getting the error. I know very little about Linux but I hope that building this LFS will set me on my way.
Anyway I'll try again tomorrow evening, I'm heading for the cot now......I'll leave the system running.
Tanks
Doc
|
|
|
10-07-2002, 05:19 PM
|
#4
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
exit chroot, run this:
ldd $LFS/static/bin/ls
is it dynamically or statically linked?
|
|
|
10-08-2002, 02:52 PM
|
#5
|
Member
Registered: Mar 2002
Location: Ireland
Distribution: Slackware 8.0, Mandy 9.0
Posts: 31
Original Poster
Rep:
|
When I exited chroot I got the following
logout
bash:exit: bad non-numeric arg 'chroot'
Then typing "ldd.....etc, i got the following result
librt.so.1 => /lib/librt.so.1 (0X40....)
libc.so.6 => /lib/libc.so.6 (0X40....)
libpthread.so.0 => /libpth... etc
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0X400...)
Don't know what it all means????
Tanks
Doc
|
|
|
10-08-2002, 04:34 PM
|
#6
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
all that from ldd means the program is not statically linked. It means that you did something wrong in chapter 5 and you need to redo the chapter. Read the book very careful and make sure you make no mistakes typing the comands. Sometimes typing a - wrong can cause the problems.
|
|
|
10-08-2002, 04:42 PM
|
#7
|
Member
Registered: Mar 2002
Location: Ireland
Distribution: Slackware 8.0, Mandy 9.0
Posts: 31
Original Poster
Rep:
|
Ooops, back we go then.
Tanks Gerard
Doc
|
|
|
All times are GMT -5. The time now is 08:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|