LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-25-2008, 07:56 PM   #1
drosselmeyer
LQ Newbie
 
Registered: Jul 2007
Distribution: Fedora Core 8
Posts: 3

Rep: Reputation: 0
Finding path of GMP and MPFR for gcc upgrade


I'm attempting to update gcc to the latest build. I've downloaded and extracted the source to /tmp/gcc-4.3.0 and created a directory /tmp/gcc430 When I run /tmp/gcc-4.3.0/configure I get the following output
Code:
[root@localhost gcc430]# /tmp/gcc-4.3.0/configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gnatbind... no
checking for gnatmake... no
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+.
Try the --with-gmp and/or --with-mpfr options to specify their locations.
Copies of these libraries' source code can be found at their respective
hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
See also http://gcc.gnu.org/install/prerequisites.html for additional info.
If you obtained GMP and/or MPFR from a vendor distribution package, make
sure that you have installed both the libraries and the header files.
They may be located in separate packages.
I think I verified them as installed with rpm

Code:
[root@localhost ~]# rpm -q mpfr
mpfr-2.3.0-1.fc8
[root@localhost ~]# rpm -q gmp
gmp-4.2.2-4.fc8
But I need to know where they are installed so I can pass that to the configure command. Any suggestions are where they are or how to find out?

Thanks,

Drew
 
Old 03-25-2008, 08:47 PM   #2
drosselmeyer
LQ Newbie
 
Registered: Jul 2007
Distribution: Fedora Core 8
Posts: 3

Original Poster
Rep: Reputation: 0
I found the solution, I needed to install the development packages so the headers would be available.
Code:
[drew@localhost ~]$ rpm -qa | grep "gpm\|mpfr"
mpfr-devel-2.3.0-1.fc8
mpfr-2.3.0-1.fc8
gpm-1.20.1-89.fc8
gpm-devel-1.20.1-89.fc8
 
Old 08-03-2011, 07:15 AM   #3
bxsjc
LQ Newbie
 
Registered: Jul 2011
Posts: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by drosselmeyer View Post
I found the solution, I needed to install the development packages so the headers would be available.
Code:
[drew@localhost ~]$ rpm -qa | grep "gpm\|mpfr"
mpfr-devel-2.3.0-1.fc8
mpfr-2.3.0-1.fc8
gpm-1.20.1-89.fc8
gpm-devel-1.20.1-89.fc8
Wow!yes,that's the solution!thank you!
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Finding path of library Ephracis Programming 6 01-08-2008 09:20 AM
finding the PATH tahiche Linux - Software 7 10-12-2005 12:47 PM
Finding the kernel path blacksunshine Linux - Software 2 10-03-2004 02:45 PM
finding java path? pyropenguin Linux - Newbie 2 09-19-2002 01:02 PM
finding java path? pyropenguin Linux - Software 2 09-15-2002 07:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:52 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