'/usr/bin/ld: cannot find -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: 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.
Solution 1:[1]
sudo apt-get install libgmp3-dev
Did the trick for me.(for Ubuntu)
Solution 2:[2]
I had this problem with Centos:
yum install gmp-devel.x86_64
fixed it for me for eventmachine ruby gem that would not install. Hope that helps someone.
Solution 3:[3]
For me, the problem was that LIBRARY_PATH was not correctly set to the directory containing libgmp.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | E.Z. |
| Solution 3 | nloveladyallen |
