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

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.


This creates a file of installed packages:

dpkg --get-selections > package_list

cat package_list | grep ^gcc
-> OK!

cat package_list | grep gmp
-> libgmp10:amd64

cat package_list | grep mpfr
-> libmpfr4:amd64

cat package_list | grep mpc
-> libmpc3:amd64

locate libgmp10
-> /var/lib/dpkg/info/libgmp10:amd64.list

locate libmpfr4
-> /var/lib/dpkg/info/libmpfr4:amd64.list

locate libmpc3
-> /var/lib/dpkg/info/libmpc3:amd64.list

cat /var/lib/dpkg/info/libgmp10\:amd64.list
-> /usr/lib/x86_64-linux-gnu/libgmp.so.10.2.0
-> /usr/lib/x86_64-linux-gnu/libgmp.so.10

cat /var/lib/dpkg/info/libmpfr4\:amd64.list
-> /usr/lib/x86_64-linux-gnu/libmpfr.so.4.1.2
-> /usr/lib/x86_64-linux-gnu/libmpfr.so.4

cat /var/lib/dpkg/info/libmpc3\:amd64.list
-> /usr/lib/x86_64-linux-gnu/libmpc.so.3.0.0
-> /usr/lib/x86_64-linux-gnu/libmpc.so.3

The requirement for this if used with a 64-bit Architecture and Debian-Based OS will result in libgmp.la, libmpfr.la, and libmpc.la being not found. However, a result for the procedures above reveals that these packages do exist on the system, so one can move forward.


Within Creek's comment to your question lies the answer: The LFS book (I'm quoting from 7.6) has this to say regarding the three libraries you mention (libgmp.la, libmpfr.la, and libmpc.la):

"The files identified by this script should be all present or all absent, but not only one or two present."

Which is to say, given your output, you do not need to do anything additional regarding those libraries. That said, I have not completed my LFS install. My answer is only as good as the book. I ended up here myself b/c I had the same question initially.