working libcrypto not found
时间: 2023-04-11 07:04:00 浏览: 88
"working libcrypto not found" 的意思是找不到可用的 libcrypto 库。这通常是因为缺少相应的依赖项或库文件。需要检查系统中是否安装了 libcrypto 库,并确保其可用。如果没有安装,则需要安装相应的依赖项或库文件。
相关问题
working libcrypto not found 如何安装
这个错误通常是因为缺少 OpenSSL 库。要解决这个问题,你需要安装 OpenSSL 库。
在 Ubuntu 上,可以使用以下命令安装 OpenSSL 库:
```
sudo apt-get update
sudo apt-get install libssl-dev
```
在 CentOS 上,可以使用以下命令安装 OpenSSL 库:
```
sudo yum install openssl-devel
```
安装完成后,重新编译你的程序,应该就可以解决这个问题了。
configure: error: *** working libcrypto not found, check config.log
configure: error: *** working libcrypto not found, check config.log的报错是因为在编译openssh-8.0p1工具时,找不到libcrypto库。根据config.log文件的分析,可以得出报错原因是在生成静态库或者动态库时没有添加-fPIC选项。而在openssl-1.0.2r下编译出来的libcrypto.a是一个静态库,因此无法使用。要解决这个问题,需要在编译openssl的库文件时添加-fPIC选项。
-fPIC 全称是Position Independent Code,用于生成位置无关代码,代码无绝对跳转,都是相对跳转。所以,在编译openssl的库文件时,需要添加-fPIC选项,可以通过以下命令进行编译:
# ./Configure --prefix=/mnt/more/loongson/sshwork/openssl-1.0.2r os/compiler:mipsel-linux-gcc -fPIC
相关问题:
1. 在编译openssh-8.0p1工具时,出现configure:error:*** working libcrypto