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 10-04-2006, 07:17 PM   #1
status1
Member
 
Registered: Sep 2006
Posts: 122

Rep: Reputation: 15
Unhappy What does /../ mean ?


Hello.
I am building lfs 6.0 from the book for the first time an I came across an error
bash: /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.1/specs: No such file or directory
I was just wondering if anyone knows what does /../ mean in that line ?
 
Old 10-04-2006, 07:43 PM   #2
FreeDoughnut
Member
 
Registered: Jun 2006
Distribution: Slackware 10.2, Debian Testing/Unstable, Ubuntu Breezy Badger, working on LFS
Posts: 228

Rep: Reputation: 30
.. always means the directory above it. So /usr/.. would be /. That translates to /mnt/lfs/tools/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
 
Old 10-05-2006, 05:55 PM   #3
status1
Member
 
Registered: Sep 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Hello,
Thanks for the reply
That makes sense.
I was just wondering what would cause that
Why not just have a normal path /mnt/lfs/tools/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Why would that need to be translated ?

My concern is that perhaps the new lfs I am building may not be able to translate the path and therefore it throws a No such file or directory
error.
Is that possible ?
 
Old 10-05-2006, 06:07 PM   #4
spirit receiver
Member
 
Registered: May 2006
Location: Frankfurt, Germany
Distribution: SUSE 10.2
Posts: 424

Rep: Reputation: 33
Quote:
Originally Posted by status1
Why not just have a normal path /mnt/lfs/tools/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Because this might be a script that doesn't necessarily know the absolute path. Let's say it has /mnt/lfs/tools/bin/ stored in a variable and wants to use the 'sibling' of that directory. Then it's much easier to append ../lib/ instead of modifying the content of the variable.
 
Old 10-05-2006, 06:55 PM   #5
status1
Member
 
Registered: Sep 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Hello,
Thanks for that answer.

Is it possible that it may cause a No such file or directory error if the program that needs that file doesn't have an absolute path ?
 
Old 10-08-2006, 07:36 AM   #6
status1
Member
 
Registered: Sep 2006
Posts: 122

Original Poster
Rep: Reputation: 15
Hello,
This is just an update in case anyone is reading this.
The problem has been solved so this is no longer an issue.
The /../ can stay there atleast it's no longer a problem for me
My problem was unrelated
 
  


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



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

All times are GMT -5. The time now is 01:55 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