LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   GCC command not found LFS book 6.3, section 6.7.1 (https://www.linuxquestions.org/questions/linux-from-scratch-13/gcc-command-not-found-lfs-book-6-3-section-6-7-1-a-663061/)

cdc5205 08-15-2008 03:39 PM

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.

cdc5205 08-16-2008 01:56 PM

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.


All times are GMT -5. The time now is 11:47 PM.