LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   mpc 0.9: error: gmp.h can't be found, or is unusable. (https://www.linuxquestions.org/questions/linux-general-1/mpc-0-9-error-gmp-h-cant-be-found-or-is-unusable-918359/)

tbodine88 12-12-2011 11:39 AM

mpc 0.9: error: gmp.h can't be found, or is unusable.
 
when compiling mpc 0.9. I find checking the configure.log I see this error:
Quote:

gmp.h can't be found, or is unusable.
This despite having set LD_LIBRARY_PATH to
Quote:

LD_LIBRARY_PATH=/root/gnu/lib:/usr/local/lib:/lib
and runnining
Quote:

./configure --prefix=/root/gnu --exec-prefix=/root/gnu
It will only work if I run this command

Quote:

./configure --prefix=/root/gnu --exec-prefix=/root/gnu --with-gmp-include=/root/gnu/include/ --with-gmp-lib=/root/gnu/lib
This seems to be a bug.

Where do I report it?

Thanks in Advance

Tom Bodine

weibullguy 12-12-2011 06:09 PM

Setting LD_LIBRARY_PATH isn't going to help find header files like gmp.h. If you had installed gmp somewhere like /usr or /usr/local, then gmp.h would have been in the default path the mpc configure script looks for header files. Since you didn't install gmp in a standard location, the mpc configure script has no idea it needs to look in /root/gnu/include. This isn't a bug at all. You're given the configure option of pointing to the path containing the gmp headers and libraries. Everything works just like it's supposed to.

The only thing really concerning is that you're building software as root.

tbodine88 12-13-2011 11:07 AM

Yes, I know, but thanks any ways.

My beef is that if I specify the location of prefix, configure should find gmp.h and libgmp.* with out me having to enter the --with-gmp-include and --with-gmp-lib, since I placed them in $prefix/include and $prefix/lib respectively.

Regards Tom Bodine

weibullguy 12-13-2011 01:20 PM

The --prefix option is the prefix where you want to INSTALL the package, not the prefix to look in for headers and libraries. But, if you think it's a bug (which it's not), the appropriate place to report it is --> http://www.gnu.org/s/autoconf/


All times are GMT -5. The time now is 08:06 AM.