我想安装一个使用gmp的库,并在其上运行./configure。 到目前为止,我已经得到了过去几碰壁,如要求GCC,g ++以及M4使用:Fedora - 用C++支持重新安装GMP
yum install gcc
yum install gcc-g++
yum install m4
现在,我得到这个错误:
checking for the GMP library version 4.1.3 or above... no
configure: error: Cannot find GMP version 4.1.3 or higher.
GMP is the GNU Multi-Precision library:
see http://www.swox.com/gmp/ for more information.
When compiling the GMP library, do not forget to enable the C++ interface:
add --enable-cxx to the configuration options.
因此,我尝试都安装和使用yum的更新GMP:
yum install gmp
yum update gmp
安装告诉我,它已经安装,并为v 5.1.2 更新说没有什么更新。
我去了GMP现场,目前它是诉6.0.0
我下载并运行配置(使用--enable-CXX),制作,并进行安装。 然而,没有任何改变。它仍然说我有5.1.2版本,并且该库的配置仍然表示它找不到4.1.3及更高版本/尝试启用C++。 gmp文件(比如gmp.h)被放置在/ usr/local/lib和/ include中
我已经在这里呆了几个小时没有任何进展。我对Linux非常陌生,所以我想有些事我只是不知道。
我是不是正确安装6.0.0来覆盖已经安装的? 或者有没有办法用C++选项重新安装原件?
任何帮助,将不胜感激。谢谢。
你尝试像'yum的安装GMP-devel'或类似的? –
感谢您的想法。我试了一下,并安装了它。然而,同样的消息出现了,我运行了关于gmp C++的./configure未启用。 –
yum install gmp-devel安装StrongSwan时为我工作 – fungusanthrax