/ usr / bin / ld:找不到-lgmp

时间:2014-02-06 13:02:11

标签: centos

[root@ bncsutil]# make
g++  -Wall -O3 -I ../ -Wno-multichar -fPIC -shared -lgmp bsha1.o cdkeydecoder.o checkrevision.o decodekey.o file.o libinfo.o oldauth.o nls.o pe.o sha1.o stack.o -o libbncsutil.so
/usr/bin/ld: cannot find -lgmp
collect2: ld returned 1 exit status
make: *** [libbncsutil.so] Error 1

我尝试在centos-6-x86-devel中执行此操作。 Gmp已经安装好了。似乎路径有问题,但我不知道究竟做了什么。

2 个答案:

答案 0 :(得分:47)

sudo apt-get install libgmp3-dev

为我做了诀窍。(对于Ubuntu)

答案 1 :(得分:7)

我在Centos上遇到了这个问题:

yum install gmp-devel.x86_64

为我修复了无法安装的eventmachine ruby​​ gem。希望有所帮助。