LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-12-2011, 11:39 AM   #1
tbodine88
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Rep: Reputation: Disabled
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
 
Old 12-12-2011, 06:09 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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.
 
Old 12-13-2011, 11:07 AM   #3
tbodine88
LQ Newbie
 
Registered: Dec 2011
Posts: 14

Original Poster
Rep: Reputation: Disabled
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
 
Old 12-13-2011, 01:20 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
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/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which directory are mpc, gmp & mpfr stored in after extraction? sophanox Linux - Newbie 2 02-20-2011 06:14 PM
[SOLVED] gmp.h not found computerfreak97 Linux From Scratch 1 12-26-2010 08:15 PM
gmp.h can't be found on chapter 6.13 charlie_lab Linux From Scratch 7 01-20-2010 06:17 AM
Debian (Nvidia) Screen found but unusable Wind_Sp00n Linux - Hardware 2 01-03-2006 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration