LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-15-2008, 02:04 PM   #1
cybernike
LQ Newbie
 
Registered: Jul 2007
Posts: 11

Rep: Reputation: 0
Installing gmp


I have RHEL5 and I am trying to upgrade gmp from 4.1.2 to 4.2.1
I downloaded the source and did
./configure
make
make check
make install

I didn't see any error, but how do I know if I installed the package successfully?

Thanks.
 
Old 05-15-2008, 02:41 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
If you didn't see any error, maybe the installation was successful. Usually you clearly see an error message at the end of the configure or make steps, if any. You can check if libraries and headers have been correctly installed looking at the default location (or the custom one, if you specified --prefix in the configure step). For example, you should have something like
Code:
/usr/lib/libgmp.so
/usr/include/gmp.h
Anyway, try to compile a code which uses the gmp functions and see if it works.

Edit: it should be useful to redirect the standard output and the standard error of the configure/make commands to a file, for further check. You can do this using tee
Code:
./configure 2>&1 | tee logfile
make 2>&1 | tee -a logfile
make check 2>&1 | tee -a logfile
then you can grep the logfile for "error" or "warning".

Last edited by colucix; 05-15-2008 at 02:55 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 GMP and MPFR for gcc upgrade drosselmeyer Linux - Newbie 2 08-03-2011 07:15 AM
Can't Compile GMP with gcc mac 10.4.11 phy1729 Programming 1 04-16-2008 03:06 AM
Glade + Gmp ! _ AsiF Linux - Software 1 03-17-2008 08:11 AM
trying to use gmp BadTaste Programming 1 08-04-2004 09:10 AM
GMP dies when logging out of X ? bustamelon Slackware 6 11-21-2002 09:09 AM

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

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