Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I know I posted this in the LFS forum just now, but it was only then I realized that the volume of people who read that forum are slim to none, and I'm in a hurry for an answer so I apologize for double-posting.
---
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?
Originally posted by babysealclubber I know I posted this in the LFS forum just now, but it was only then I realized that the volume of people who read that forum are slim to none, and I'm in a hurry for an answer so I apologize for double-posting.
---
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?
As our rules indicate, don't double post as this is preferred to be in LFS as its an LFS question.
This thread will not be closed as we would like to direct all questions to your original post as that's why we have that forum, to try and get more participation in that forum.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.