Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 08-15-2008, 03:39 PM   #1
LQ Newbie
Registered: Jan 2006
Distribution: Ubuntu 7.04
Posts: 21

Rep: Reputation: 16
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
make mrproper
and get
root:/sources/linux- make mrproper
/sources/linux- line 11: /tools/bin/gcc: No such file or directory
/sources/linux- 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:
bash: /tools/bin/gcc: No such file or directory
here's my path.
root:/sources/linux- echo $PATH
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, 01:56 PM   #2
LQ Newbie
Registered: Jan 2006
Distribution: Ubuntu 7.04
Posts: 21

Original Poster
Rep: Reputation: 16
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/ and was /lib/

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

 ln -sv /tools/lib/ /lib/
and gcc is now found and working fine.
1 members found this post helpful.


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 09: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 04:23 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
LFS 4.1 book install hung at section 6.14: Glibc-2.3.1 SparceMatrix Linux From Scratch 4 05-30-2003 04:56 PM
LFS Chap 5 - gcc first make command errors antken Linux From Scratch 3 03-17-2003 10:38 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration