命令apt-cache policy libssl-dev
显示以下输出:
libssl-dev:
Installed: (none)
Candidate: 1.0.1f-1ubuntu2.11
Version table:
1.0.1f-1ubuntu2.11 0
500 http://mirrors.digitalocean.com/ubuntu/ trusty-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu/ trusty-security/main amd64 Packages
1.0.1f-1ubuntu2 0
500 http://mirrors.digitalocean.com/ubuntu/ trusty/main amd64 Packages
当我通过apt-get install libssl-dev
获取1.0.1f
版本时安装它。但是我通过以下命令从源代码安装了最新的openssl-1.0.2a
:
wget http://www.openssl.org/source/openssl-1.0.2a.tar.gz
tar -xvzf openssl-1.0.2a.tar.gz
cd openssl-1.0.2a
./config --prefix=/usr/
make
sudo make install
如何安装libssl-dev-1.0.2a
版本以与我的openssl-1.0.2a
兼容?