LinuxQuestions.org
Visit Jeremy's Blog.
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 01-12-2010, 11:19 AM   #1
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
files not accessible in /tools


Hi,

I installed LFS 6.3 x86_64 and it has been working fine until recently. I also wanted to install it on another partition. The first partition would be the stable 'rescue' partition and the other was meant to be experimental. This did work fine a couple of times. But as I tried to reinstall it yesterday the files in the $LFS/tools directory are not being found. They are definetly there and even completion works. But when I hit the ENTER-key I get the error: No such file or directory.
Has anyone encountered a similiar problem or any idea how to fix this?
 
Old 01-12-2010, 01:59 PM   #2
mjones490
Member
 
Registered: Sep 2005
Distribution: LFS
Posts: 60

Rep: Reputation: 22
Make sure that the tools/bin directory is in the directory path:

Code:
export PATH=$PATH:$LFS/tools/bin
 
Old 01-12-2010, 02:22 PM   #3
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Original Poster
Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by mjones490 View Post
Make sure that the tools/bin directory is in the directory path:

Code:
export PATH=$PATH:$LFS/tools/bin
Hi,

this is not the problem. Maybe I was a little bit unclear in my previous post with the completion issue.

Let's say I want to call the program chroot in the directory $LFS/tools/bin/ . The value of $LFS is in my case /mnt.
So I can type
/mn
and when I hit TAB this will complete to:
/mn -> /mnt/

When I continue to type:
/mnt/to TAB
This completes to:
/mnt/to -> /mnt/tools/

/mnt/tools/b -> /mnt/tools/bin/

Now I can even type:
/mnt/tools/bin/ch TAB
This completes to
/mnt/tools/bin/chroot

So the command is definetly found. When I hit ENTER I get the message:
No such file or directory.
I already checked the permission. They are OK. And if they were not the error message would somewhat different.
 
Old 01-12-2010, 02:52 PM   #4
mjones490
Member
 
Registered: Sep 2005
Distribution: LFS
Posts: 60

Rep: Reputation: 22
Ah! Run ldd on one of the binaries, say, bash:
Code:
ldd /mnt/tools/bash
If it complains some (or all) of the libraries are not found, run ldconfig on the bin directory:
Code:
ldconfig /mnt/tools/bin
It'd be nice if when it could not find a library it would say "libXXX.so not found" rather than "No such file or directory". You're mentioning that the error message would be somewhat different is what made this occur to me.
 
Old 01-12-2010, 04:32 PM   #5
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Original Poster
Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Still not working.
ldd /mnt/tools/bash
returns: No such file or directory

After that I tried ldconfig /mnt/tools/bin/ as well as /tools/bin/.
Both ways had no effect. Further I tried the following:

ldconfig -nv /tools/bin/ /tools/lib/
ldconfig -nv /mnt/tools/bin/ /mnt/tools/lib/

Nothing worked so far.
 
Old 01-12-2010, 04:44 PM   #6
mjones490
Member
 
Registered: Sep 2005
Distribution: LFS
Posts: 60

Rep: Reputation: 22
Quote:
Originally Posted by crts View Post
Still not working.
ldd /mnt/tools/bash
returns: No such file or directory
Mistake on my part. Do ldd /mnt/tools/bin/bash, or on whatever executable is in the /mnt/tools/bin directory.

If you can get that to output anything other than No such file or directory, that might lead to something. Although running ldconfig everywhere like you did should have worked. . .
 
Old 01-12-2010, 07:54 PM   #7
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Original Poster
Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by mjones490 View Post
Mistake on my part. Do ldd /mnt/tools/bin/bash, or on whatever executable is in the /mnt/tools/bin directory.
No, actually it's my mistake. I did 'ldd /mnt/tools/bin/bash' in the console, but I posted it wrong. The error was the same.
 
Old 01-12-2010, 11:09 PM   #8
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Original Poster
Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
FINALLY! I got it working again. As I stated in my initial post I build the x86_64 version. Somehow the symbolic link
/tools/lib64 -> /tools/lib

got deleted. I don't know how or when it exactly happened but after restoring the symlink my toolchain was miraculously revived.
 
  


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
Apache - stop files from being accessible from web browser jlarsen Linux - Software 9 01-20-2009 11:14 PM
Are there any GUI tools to work with config files HGeneAnthony Linux - General 4 12-27-2007 11:46 AM
any tools to edit music files? bonito SUSE / openSUSE 2 09-26-2005 05:42 PM
Linux Programs and Files: accessible by any installed distro? hanzj Linux - Newbie 10 04-19-2005 07:46 AM
files on CDROM and floppy not accessible Lenny_D Mandriva 10 01-27-2004 01:49 PM

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

All times are GMT -5. The time now is 07:02 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
Open Source Consulting | Domain Registration