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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
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
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:10 AM.
|
|
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
|
|