LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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


Reply
  Search this Thread
Old 10-07-2002, 04:44 PM   #1
Dr.Swing
Member
 
Registered: Mar 2002
Location: Ireland
Distribution: Slackware 8.0, Mandy 9.0
Posts: 31

Rep: Reputation: 15
Question 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
 
Old 10-07-2002, 05:11 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
Make sure $LFS/static/bin/chown is statically linked.
 
Old 10-07-2002, 06:10 PM   #3
Dr.Swing
Member
 
Registered: Mar 2002
Location: Ireland
Distribution: Slackware 8.0, Mandy 9.0
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 10-07-2002, 06:19 PM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
exit chroot, run this:

ldd $LFS/static/bin/ls

is it dynamically or statically linked?
 
Old 10-08-2002, 03:52 PM   #5
Dr.Swing
Member
 
Registered: Mar 2002
Location: Ireland
Distribution: Slackware 8.0, Mandy 9.0
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 10-08-2002, 05:34 PM   #6
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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.
 
Old 10-08-2002, 05:42 PM   #7
Dr.Swing
Member
 
Registered: Mar 2002
Location: Ireland
Distribution: Slackware 8.0, Mandy 9.0
Posts: 31

Original Poster
Rep: Reputation: 15
Ooops, back we go then.

Tanks Gerard
Doc
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't chmod/chown a dir after smbmout !? Ramu Linux - Security 2 01-19-2005 10:24 AM
restore file or dir from dump file brumela Linux - Newbie 3 09-08-2004 05:31 AM
how do I chown a PHP file on /usr/ to allow EVERYONE to include it? cpanelskindepot Programming 2 07-16-2004 04:36 PM
-bash no such file or dir slackwarefan Slackware 3 06-12-2004 08:49 AM
I can't remove file or dir canay Linux - Newbie 2 01-19-2002 07:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration