[Mplapack-devel] Versions of MPFR and GMP on Ubuntu Linux
Status: Pre-Alpha
Brought to you by:
nakatamaho
From: Fletcher, J. P <j.p...@as...> - 2011-04-02 15:38:20
|
I have tried out dynamic linking and find that I get warnings associated with the versions of mpfr and gmp libraries which are being used. g++ -c -O2 -fopenmp -I/home/fletcher/MPACK/include -I/home/fletcher/MPACK/include/mpack -I/home/fletcher/MPACK/include/qd trial_mpcomplex.cpp g++ -o trial_mpcomplex trial_mpcomplex.o -fopenmp -L/home/fletcher/MPACK/lib -lmlapack_mpfr -lmblas_mpfr -lmpfrcxx -lmpc -lmpfr -lgmp /usr/bin/ld: warning: libmpfr.so.4, needed by /usr/local/lib/libmpc.so, may conflict with libmpfr.so.1 /usr/bin/ld: warning: libgmp.so.10, needed by /usr/local/lib/libmpc.so, may conflict with libgmp.so.3 On inspection libmpr.so.1 and libgmp.so.3 are located in /usr/lib and are the ones installed by the operating system: fletcher@fletcher-desktop:~$<mailto:fletcher@fletcher-desktop:~$> apt-cache policy libgmp3c2 libgmp3c2: Installed: 2:4.3.2+dfsg-1ubuntu1 Candidate: 2:4.3.2+dfsg-1ubuntu1 Version table: *** 2:4.3.2+dfsg-1ubuntu1 0 500 http://gb.archive.ubuntu.com/ubuntu/ lucid/main Packages 100 /var/lib/dpkg/status fletcher@fletcher-desktop:~$<mailto:fletcher@fletcher-desktop:~$> apt-cache policy libmpfr1ldbl libmpfr1ldbl: Installed: 2.4.2-3ubuntu1 Candidate: 2.4.2-3ubuntu1 Version table: *** 2.4.2-3ubuntu1 0 500 http://gb.archive.ubuntu.com/ubuntu/ lucid/main Packages 100 /var/lib/dpkg/status The ones in /usr/local/lib I think have been installed by MPACK (libgmp.so.10 and libmpfr.so.4) as they were updated when I did a rebuild of MPACK. It is not unusual to have this sort of problem with Ubuntu as it follows Debian in using /usr/lib where other systems use /usr/local/lib. Is there anything I can do to resolve this. I don't want to remove the versions in /usr/lib as they are likely to be used by other software, such as gcc. Thank you John |