/ usr / bin / ld:找不到-lgmp [英] /usr/bin/ld: cannot find -lgmp

查看:1737
本文介绍了/ usr / bin / ld:找不到-lgmp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  [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:找不到-lgmp
collect2:ld返回1退出状态
make:*** [libbncsutil.so]错误1

我试图这样做在centos-6-x86-devel。
Gmp已经安装。看起来像路径有问题,但我不知道究竟做什么。

解决方案

  sudo apt-get install libgmp3-dev 

p>

[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

I try to do this in centos-6-x86-devel. Gmp is already installed. Seems like something wrong with path, but i don't know what exactly do.

解决方案

sudo apt-get install libgmp3-dev

Did the trick for me.(for Ubuntu)

这篇关于/ usr / bin / ld:找不到-lgmp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆