gmp package installation on CentOS 5.2
--- On Thu, 11/11/10, Nastou Panagiotis <firstname.lastname@example.org> wrote:
> From: Nastou Panagiotis <email@example.com>
> Subject: [CentOS] gmp package installation on CentOS 5.2
> To: "firstname.lastname@example.org" <email@example.com>
> Date: Thursday, November 11, 2010, 11:37 AM
> Last year, I installed CentOS 5.2 on an HP Proliant Server.
> Along with other packages, the gmp and gmp-devel version
> 4.1.4 packages were installed. To the best of my knowledge
> these packages do not come from the gmp team.
yum install yum-utils
yumdownloader --source gmp
(or grab the SRPM from a centos mirror)
rpm -i gmp-*-src.rpm
then go into
/usr/src/redhat/SOURCES (not sure here-- its your expected buildroot)
and you will see that there is a bz2 from ftp://ftp.gnu.org/pub/gnu/gmp/
and another from mpfr.org.
To rebuild the gmp SRPM in the centos way, you should download the versions of those 2 bz2 files and edit the gmp.spec (../SPECS) to reflect that version
rpmbuild -ba gmp.spec
> Recently, I built an rpm package for gmp 5.0.1 for CentOS
> 5.2. I tried to update the gmp package by command
> rpm -Uvh gmp-5.0.1-1.x86_64.rpm
> but the update failed because the libgmp.so.3,
> libgmpxx.so.3 and the libmp.so.3 are needed from
> gcc-gfortran, php, php-cli, guile and gmp-devel packages.
> What kind of dependency exists between these packages and
> Could I forced the update without affecting the operation
> of the above packages?
> Since It is better to compile gmp 5.0.1 with the more
> recent gnu c compiler,
> is it safe to update gcc, gcc-gfortran and gcc-c++ on
> CentOS 5.2 to the more recent version appeared for CentOS
CentOS mailing list