LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   gcc: No such file or directory (https://www.linuxquestions.org/questions/linux-from-scratch-13/gcc-no-such-file-or-directory-137543/)

babysealclubber 01-22-2004 02:44 PM

gcc: No such file or directory
 
I've been following the Linux from Scratch book to the T from the beginning. My problem is I can't run gcc from inside the chroot environment. Outside the environment, running a /tools/bin/gcc -v (/tools points to /mnt/lfs/tools) outputs the gcc version 3.3.1 I built during the install. This is fine and expected. However, when I chroot into /mnt/lfs and try to run gcc, either using "gcc" or explicitly calling /tools/bin/gcc, I get a no such file or directory error. I can run any other program in /tools/bin except the compiler toolchain. This has me completely stumped. Anyone have any idea what's wrong?

kasperhans 01-22-2004 03:48 PM

maybe it has to be chmodded i mean you compiled it using another system and or live cd ... so maybe a simple chmod will do it to change permissions ?

babysealclubber 01-22-2004 04:25 PM

It's 755 just like the rest of them. It doesn't say permission denied, simply "No such file or directory." I'm still root inside the chroot like I was outside, so permissions shouldn't matter so much.

kasperhans 01-22-2004 06:36 PM

maybe there is an compile error within the gcc install you made or you forgot something did you try a simple reinstall or to install another version of gcc?

Creep 01-23-2004 04:33 PM

This might be a bit too simple, but check to see if the bin-directory gcc is in is included in your PATH-variable.

320mb 01-31-2004 08:43 AM

did you install ALL the required patches in chapter 5 while building the $tools????


All times are GMT -5. The time now is 02:53 PM.