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?
|
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 ?
|
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.
|
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?
|
This might be a bit too simple, but check to see if the bin-directory gcc is in is included in your PATH-variable.
|
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. |