configure: error: libmpfr not found or uses a different ABI (including static vs shared).

简介: 配置mpc的时候提示此错误: configure: error: libmpfr not found or uses a different ABI (including static vs shared).

配置mpc的时候提示此错误:
configure: error: libmpfr not found or uses a different ABI (including static vs shared).

mpc下载:
wget ftp://gnu.mirror.iweb.com/mpc/mpc-1.0.1.tar.gz

问题原因:
缺少mpfr,下载地址
http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.xz
http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.gz
注意文件的扩展名,压缩比不同,解压方式也不同,.tar.xz的压缩率比较高。

对应的解压方式:
tar -zxvf mpfr-3.1.2.tar.gz

.tar.xz的解压方法:
xz -d mpfr-3.1.2.tar.xz
会产生一个mpfr-3.1.2.tar 文件,再执行
tar -xvf mpfr-3.1.2.tar

安装:
解压完成后进入目录配置安装:

# cd ./mpfr-3.1.2
# ./configure 
# make && make install

依赖项:
wget ftp://gnu.mirror.iweb.com/gmp/gmp-4.3.2.tar.gz

目录
相关文章
|
5月前
|
关系型数据库 MySQL
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
mysql: error while loading shared libraries: libncurses.so.5: cannot open shared object file
416 2
|
7月前
|
缓存 Ubuntu Linux
error while loading shared libraries: libxcb-icccm.so.4: cannot open shared object file: No such file or directory 问题如何处理
【5月更文挑战第16天】error while loading shared libraries: libxcb-icccm.so.4: cannot open shared object file: No such file or directory 问题如何处理
954 0
|
关系型数据库 MySQL
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
mysql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such
284 33
gdalinfo: error while loading shared libraries: libgdal.so.30: cannot open shared object file: No su
gdalinfo: error while loading shared libraries: libgdal.so.30: cannot open shared object file: No su
206 0
|
NoSQL MongoDB
mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No s
mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No s
635 0
error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file
218 0
|
关系型数据库 MySQL Linux
error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or
error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or
configure: error: libacl not found
configure: error: libacl not found
82 0
原因及解决办法:error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file
原因及解决办法:error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file
411 0