Linux From Scratch: libgmp.la, libmpfr.la, and libmpc.la not found during version-check

lfslibrarieslinux

I'm trying to build a Linux From Scratch system on my host Linux Mint machine. However, when I run the version-check.sh file, it returns that my system is missing libgmp.la, libmpfr.la, and libmpc.la, even though I have libgmp10, lipmpc3, and libmpfr4 . Here is the output of version check:

bash, version 4.2.45(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.23.52.20130913
bison (GNU Bison) 2.7.12-4996
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.20
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 4.0.1
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
g++ (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1
(Ubuntu EGLIBC 2.17-93ubuntu4) 2.17
grep (GNU grep) 2.14
gzip 1.6
Linux version 3.11.0-12-generic (buildd@komainu) (gcc version 4.8.1      
(Ubuntu/Linaro 4.8.1-10ubuntu7) ) #19-Ubuntu SMP Wed Oct 9 16:12:00 UTC 2013
m4 (GNU M4) 1.4.16
GNU Make 3.81
GNU patch 2.7.1
Perl version='5.14.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.26
xz (XZ Utils) 5.1.0alpha
g++ compilation OK
libgmp.la: not found
libmpfr.la: not found
libmpc.la: not found

NOTE: I'm following version 7.5 of the book and I'm using a 32-bit Linux Mint host (kernel 3.11.0-12).

Best Answer

I was also trying to build LFS system on my system. I am using Ubuntu 14.04. I got the same message during version-check. I went ahead with chapter 5 and during installing gcc, make failed with error. Checking few online help and mailing lists, I found that I had to point to the place where the libraries existed i.e. /usr/lib which I found out from this stackoverflow question.

I searched in /usr/lib and these libraries did not exist there. So, I downloaded and installed mpfr, gmp and mpc. Follow these links: gmp, mpfr and mpc.

Note: follow the build and install instructions given for gmp for mpc and mpfr. using make check for gmp results in 1 test failing which I don't think will be a problem here in LFS, hopefully. Example of gmp make check failing 1 test here.

Related Question