Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am building LFS 6.8 version. While installing gcc-4.5.2 I am getting an error like gmp.h header not found. Please tell me how to resolve this. My problem is similar to above but I didn't understand the solution given above.
checking if charset has consecutive values... yes
checking for math/round... yes
checking for math/trunc... yes
checking for math/floor... yes
checking for math/ceil... yes
checking for math/rint... yes
checking for long double... yes
checking format of `long double' floating point... IEEE extended, little endian
checking for gmp.h... no
configure: error: gmp.h can't be found, or is unusable.
make: *** [configure-mpfr] Error 1
make: Leaving directory `/mnt/lfs/gcc-4.5.2'
make: *** [all] Error 2
Although this looks similar and might have the same solution, it would be wise to start a new thread for this. For one, the above is LFS 6.7 and you are building LFS 6.8, they might (slightly) differ in the way things are done. This thread is also marked as [SOLVED].
You also need to give us a bit more info:
- Which chapter are you working on (gcc is build 3 times, twice in chapter 5 and once in chapter 6),
- Which host are you using (and if not the LFS liveCD, did you make it compliant),
- Did you encounter any other problems before reaching this point,
Assuming you are at chapter 5.5:
- Did you extract the 3 packages (among which is gmp) in the correct location?
- It looks like you did not create the gcc-build directory and work from there.
First of all I am grateful to you for your concern.
-> I am working in 5th chapter i.e. section 5.5 on building 1st pass of GCC 4.5.2.
->I am using Ubuntu 10.10 as my host.
-> And till this point I haven't encountered any problems.
-> Ya I have extracted the three packages i.e. MPC-0.8.2, MPFR-3.0.0 and and GMP-5.0.1 inside GCC directory.
-> And about gcc-build directory, where should I create it. I am confused about it. I am installing the package from /mnt/lfs/sources/gcc-4.5.2.
And if you need more information I can provide you.
But my friend is also doing the same project Linux From Scratch v6.8 in Debian 6.0 (SQUEEZE) which is compliant to the host system specified by LFS.
No it is not.
Debian (personal experience with: 6 and the previous stable and testing) _do_ need changes/additions to make it compliant.
He is also getting the same error no?
I don't know what errors he's getting, but looking at the errors you are seeing, I think you are not following the book and that is why things go wrong in this instance.
The book assumes that you have unpacked the package and are standing in the newly created directory when you start a new building chapter. Mentioned here, bottom of the page. In this case: especially 3 a, b and c.