开发者

Configure unable to find libgcrypt

开发者 https://www.devze.com 2023-03-30 09:51 出处:网络
hello i have faced problem with libgcrypt and i am sure is is installed with newst version th开发者_如何学Cats happen when i try to install libssh2

hello i have faced problem with libgcrypt and i am sure is is installed with newst version th开发者_如何学Cats happen when i try to install libssh2

[root@loft1034 libssh2-1.1]#./configure

configure: error: cannot find OpenSSL or Libgcrypt,
try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH
[root@loft1034 libssh2-1.1]# locate libgcrypt
/usr/lib/.libgcrypt.so.11.hmac
/usr/lib/libgcrypt.so.11
/usr/lib/libgcrypt.so.11.5.2
/usr/lib64/.libgcrypt.so.11.hmac
/usr/lib64/libgcrypt.so.11
/usr/lib64/libgcrypt.so.11.5.2
[root@loft1034 libssh2-1.1]#

i try to using prefix path with no benefit please help me?


Install the package with the header files.

CentOS 6/7, perhaps Fedora:

sudo yum install -y libgcrypt-devel

Debian/Ubuntu:

sudo apt-get install -y libgcrypt11-dev


Try this (it works for Ubuntu 15.10 64 bit)

wget ftp://ftp.debian.org/debian/pool/main/libg/libgcrypt11/libgcrypt11_1.5.0-5+deb7u3_amd64.deb
sudo dpkg -i libgcrypt11_1.5.0-5+deb7u3_amd64.deb


If you are using centOS install libcrypt-devel:

sudo yum install libgcrypt-devel


For ubuntu(works for me)

Try to download the package first, download links, note choose the right architecture.

there take amd64 as an example.first we get the link address http://security.ubuntu.com/ubuntu/pool/main/libg/libgcrypt20/libgcrypt11-dev_1.5.4-3+really1.8.1-4ubuntu1.3_amd64.deb

On ubuntu, we download the package

wget http://security.ubuntu.com/ubuntu/pool/main/libg/libgcrypt20/libgcrypt11-dev_1.5.4-3+really1.8.1-4ubuntu1.3_amd64.deb

then install it

sudo dpkg -i libgcrypt11-dev_1.5.4-3+really1.8.1-4ubuntu1.3_amd64.deb

Maybe there are other dependencies need to install. you can choose to install it one by one, or follow the tips

sudo apt --fix-broken install
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号