LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 08-15-2008, 04:39 PM   #1
cdc5205
LQ Newbie
 
Registered: Jan 2006
Distribution: Ubuntu 7.04
Posts: 21

Rep: Reputation: 15
GCC command not found LFS book 6.3, section 6.7.1


I'm at the section where I'm installing the linux API headers in section 6.7.1.

I run
Code:
make mrproper
and get
Code:
root:/sources/linux-2.6.22.5# make mrproper
/sources/linux-2.6.22.5/scripts/gcc-version.sh: line 11: /tools/bin/gcc: No such file or directory
/sources/linux-2.6.22.5/scripts/gcc-version.sh: line 12: /tools/bin/gcc: No such file or directory
make: gcc: Command not found
  CLEAN   include/linux/version.h
I verified that gcc is in /tools/bin and it is as well as cc.


I tried to compile a dummy.c program again and it got:
Code:
bash: /tools/bin/gcc: No such file or directory
here's my path.
Code:
root:/sources/linux-2.6.22.5# echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
Am I in the wrong directory or what am I doing wrong?
Let me know if you need anymore information and any help is greatly appreciated.
 
Old 08-16-2008, 02:56 PM   #2
cdc5205
LQ Newbie
 
Registered: Jan 2006
Distribution: Ubuntu 7.04
Posts: 21

Original Poster
Rep: Reputation: 15
I think i fixed it.

But i don't really know if i did it right or if it will cause problems later.

I realized that my program interpreter was not
/tools/lib/ld-linux.so.2 and was /lib/ld-linux.so.2

so I didn't really know how to fix it, so I just created a symbolic link to it with :

Code:
 ln -sv /tools/lib/ld-linux.so.2 /lib/ld-linux.so.2
and gcc is now found and working fine.
 
  


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
i got error in 6.12-GCC-4.0.3 of LFS-Book-6.2 luckybtn Linux From Scratch 1 08-06-2008 10:52 AM
error using lfs while compiling lfs book's 6.12 (gcc-4.1.2) section aditya_gpch Linux From Scratch 3 04-24-2008 05:23 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM
LFS 4.1 book install hung at section 6.14: Glibc-2.3.1 SparceMatrix Linux From Scratch 4 05-30-2003 05:56 PM
LFS Chap 5 - gcc first make command errors antken Linux From Scratch 3 03-17-2003 11:38 PM


All times are GMT -5. The time now is 06:16 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration