Linux 配置找不到 libgcrypt
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7150323/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Configure unable to find libgcrypt
提问by Amenda
hello i have faced problem with libgcrypt and i am sure is is installed with newst version thats happen when i try to install libssh2
你好,我遇到了 libgcrypt 的问题,我确定安装的是最新版本,这在我尝试安装 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?
我尝试使用前缀路径没有任何好处请帮助我?
回答by janneb
Install the package with the header files.
安装带有头文件的包。
CentOS 6/7, perhaps Fedora:
CentOS 6/7,也许是 Fedora:
sudo yum install -y libgcrypt-devel
Debian/Ubuntu:
Debian/Ubuntu:
sudo apt-get install -y libgcrypt11-dev
回答by Viktorminator
Try this (it works for Ubuntu 15.10 64 bit)
试试这个(它适用于 Ubuntu 15.10 64 位)
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
回答by Hi_there
If you are using centOS install libcrypt-devel
:
如果您使用 centOS 安装libcrypt-devel
:
sudo yum install libgcrypt-devel