2016-07-05 35 views
2

安裝GMP我試圖在CentOS安裝GMP,並出現以下錯誤:在CentOS

yumdownloader --source gmp 
Enabling mysql-tools-community-source repository 
Enabling mysql-connectors-community-source repository 
Enabling mysql56-community-source repository 
Loading mirror speeds from cached hostfile 
* base: centos.mirrors.ovh.net 
* epel: nl.mirror.babylon.network 
* epel-source: nl.mirror.babylon.network 
* extras: centos.mirrors.ovh.net 
* updates: centos.mirrors.ovh.net 
No source RPM found for gmp-4.3.1-10.el6.x86_64 
No source RPM found for gmp-4.3.1-10.el6.i686 
Nothing to download 

你能幫助我嗎?

+0

爲什麼你正在嘗試,而不是一個二進制包來獲取源(的古董版)?如果你確實需要源代碼,你可以直接從gmplib.org獲取最新的源代碼。 –

+0

請注意,問題是在下一個網址回答:http://stackoverflow.com/questions/38190892/unable-to-install-gmp-in-centos –

回答

6

如何安裝GMP:#yum install gmp-devel

+0

@Paulo Monteiro,你可以得到源src.rpm從Redhat:ftp://ftp.redhat.com/redhat/linux/enterprise/6Server/en/os/SRPMS/gmp-4.3.1-10.el6.src.rpm。 CentOS保險庫也提供相同的軟件包http://vault.centos.org/6.8/os/Source/SPackages/ –