Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-22-2004, 02:47 PM
|
#1
|
LQ Newbie
Registered: Oct 2003
Distribution: Slackware 10.2
Posts: 24
Rep:
|
gcc: No such file or directory
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?
|
|
|
01-22-2004, 03:03 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Re: gcc: No such file or directory
Quote:
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.
Regards.
|
|
|
01-22-2004, 03:03 PM
|
#3
|
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Rep:
|
in the chroot directory try /bin/gcc
Sorry Tricky, I should have replied in the other form....
Forget it, I miss read what you wrote.... I have no idea.
Last edited by jtshaw; 01-22-2004 at 03:05 PM.
|
|
|
All times are GMT -5. The time now is 06:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|