LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 02-11-2011, 03:23 PM   #1
linuxpicaxe
LQ Newbie
 
Registered: Feb 2011
Distribution: arch linux
Posts: 17

Rep: Reputation: 0
Question Problem creating symlink with gcc to libgcc.a in LFS v6.7


Hi all!

First post here so hello! and hope i get this right

Right, I have been using linux for about 4 months now and decided i fancy the challenge of building a LFS system(Using book version 6.7). I have got all the way up to the point of gcc being installed and then have to create the symlink to libgcc.a

Now i have typed in the command and tried copy and pasting but i always get the following output:
Code:
lfs@experimental-OptiPlex-GX270:/mnt/lfs/sources/gcc-build$    ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | \
> sed 's/libgcc/&_eh/'`
No command '-gcc' found, did you mean:
 Command 'cgcc' from package 'sparse' (multiverse)
 Command 'gcc' from package 'gcc' (main)
 Command 'gcc' from package 'pentium-builder' (universe)
-gcc: command not found
ln: creating symbolic link `./libgcc.a': File exists
Now it cannot find -gcc it appears but states at the bottom ./libgcc.a file exists.

Can anyone advise me on wheather to carry on, if its a fatal error or what I can do to possibly correct it!

Thanks all

Alex
 
Old 02-12-2011, 04:09 AM   #2
Oliv'
Senior Member
 
Registered: Jan 2004
Location: Montpellier (France)
Distribution: Gentoo
Posts: 1,014

Rep: Reputation: 36
Hello,

Quote:
No command '-gcc' found, did you mean:
Considering this error message and the command you try to run, I think that your $LFS_TGT environment variable is not set. So setting it up to a correct value should fix your problem.

Kind regards,

Oliv'
 
Old 02-28-2011, 07:04 AM   #3
nuainkyeuh
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by Oliv' View Post
Hello,


Considering this error message and the command you try to run, I think that your $LFS_TGT environment variable is not set. So setting it up to a correct value should fix your problem.

Kind regards,

Oliv'

where is setting up that environment??
 
Old 02-28-2011, 07:12 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371Reputation: 2371
Hi,

The LFS_TGT variable is set when you login using the lfs user. It is part of .bashrc and you created that file in this chapter: 4.4. Setting Up the Environment

To see if it is set: echo $LFS_TGT

Hope this helps.
 
Old 03-06-2011, 12:24 PM   #5
linuxpicaxe
LQ Newbie
 
Registered: Feb 2011
Distribution: arch linux
Posts: 17

Original Poster
Rep: Reputation: 0
Hi all!

Thanks for the help. After running around in circles trying to reset variables and work out where gcc had run off to I figured it best to just start over again as something must have gone wrong somewhere. Doing that worked a treat so gcc must not have installed properly.

Cheers all

Alex
 
  


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
LFS 6.12. GCC-4.1.2 startfiles problem wyylling Linux From Scratch 2 12-15-2009 03:05 AM
lfs 6.5 gcc problem aahiqmir Linux From Scratch 1 10-25-2009 09:31 AM
ln -vs libgcc.a `gcc -print-libgcc-file-name | ......file exists jpeters Linux From Scratch 3 03-26-2009 09:40 PM
Folder $(gcc -print-libgcc-file-name) doesn't exist. 5.7 clonas Linux From Scratch 8 10-24-2008 07:08 PM
Installing GCC, binutils, libgcc, etc. jcai Linux - Newbie 5 09-14-2004 03:57 PM


All times are GMT -5. The time now is 11:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration