LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-26-2003, 09:43 AM   #1
tyccea
Member
 
Registered: Aug 2003
Location: atlanta, ga
Distribution: SuSE 8.2
Posts: 90

Rep: Reputation: 15
cannot symlink /tools


linux:/mnt/lfs # ln -s $lfs/tools /
ln: `//tools': cannot overwrite directory

I also tried this while working in a home, & the root, directory with the same results. man ln lists the -s switch as meaning symbolic. What else can I do?

I googled a bit of course, but don't really know what could cause this problem.

TIA
<<edit --> added below>>
Ok...ln -s /mnt/lfs/tools / creates a link to /mnt/lfs (the target), with / as the link name...so the host's compiler, et al can be used, right? I get the same damn error if I say
ln -s /mnt/lfs/tools /.
echo $lfs yields /mnt/lfs

Last edited by tyccea; 11-26-2003 at 10:07 AM.
 
Old 11-26-2003, 10:03 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
" What else can I do? "

I am not sure why you want to do this but you might be able to get the effect that you want by using the chroot command.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 11-26-2003, 10:20 AM   #3
tyccea
Member
 
Registered: Aug 2003
Location: atlanta, ga
Distribution: SuSE 8.2
Posts: 90

Original Poster
Rep: Reputation: 15
thanks for the response but I'm "scared" to chroot since I'm not supposed to do that (per the book's instructions) until later + plus I know squat about chroot as of yet.
it accepts the command if I'm in the root directory of the installed system (suse), and leave off the / after
# ln -s mnt/lfs/tools

wouldn't such a command fulfill this statement?
the book says, "This symlink enables us to complie our toolchain so that it always refers to /tools, meaning that the compiler, assembler and linker will work both in this chapter (when we are still using some tools from the host) and in the next (when we are chrooted to the LFS partition)."

thanks again
 
Old 11-26-2003, 02:55 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
The problem might be in how bash is interpreting the lfs variable. Try:
ln -s ${lfs}/tools /
and see what you get.

You also could do:
JERAMIAH="ln -s $lfs/tools /"
echo $JERAMIAH


------------------
Steve Stites

Last edited by jailbait; 11-26-2003 at 03:34 PM.
 
Old 12-05-2003, 06:01 PM   #5
ginobrewski
LQ Newbie
 
Registered: Sep 2003
Location: Juneau Alaska
Distribution: Debian, Fedora1
Posts: 1

Rep: Reputation: 0
There is probably a /tools directory under / and you cant overwrite it with link. Try deleting /tools if there is nothing in it and try running your command again.
 
Old 08-18-2004, 10:41 PM   #6
insyte
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 308

Rep: Reputation: 30
Sorry to revive an old thread, but this one just solved my problem
 
  


Reply



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
/tools/bin/env: /tools/bin/bash: No such file or directory DaZjorz Linux From Scratch 21 07-27-2005 07:11 AM
cdda ripping tools: what tools are good these days? jgombos Linux - Software 3 01-03-2005 11:09 PM
symlink mikedelo Linux - Software 2 03-28-2004 12:32 PM
is there any virtual cd tools like deamon tools on linux ? ixogn Linux - Software 1 02-24-2004 10:19 AM
Symlink Mestax Linux - Newbie 3 09-04-2003 12:07 PM

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

All times are GMT -5. The time now is 09:32 PM.

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