ubuntu怎么安装openssl

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu怎么安装openssl相关的知识,希望对你有一定的参考价值。

参考技术A 虚拟机上的Ubuntu已经安装过openssl但是仍然不能进行openssl编程
上网查找资料得到是由于未安装openssl-devel包,执行以下两条命令更新后就可以了
sudo apt-get install openssl
sudo apt-get install libssl-dev

Linux下编译安装openssl1.0.1d时遇到问题怎么办?

./Configure linux-generc64
##成功
make
遇到问题
../libcrypto.a(eng_rsax.o): In function `e_rsax_bn_mod_exp':
eng_rsax.c:(.text+0x11ff): undefined reference to `mod_exp_512'
../libcrypto.a(eng_rsax.o): In function `e_rsax_rsa_mod_exp':
eng_rsax.c:(.text+0x1b00): undefined reference to `mod_exp_512'
eng_rsax.c:(.text+0x21ab): undefined reference to `mod_exp_512'
../libcrypto.a(e_rc4_hmac_md5.o): In function `rc4_hmac_md5_cipher':
e_rc4_hmac_md5.c:(.text+0x40f): undefined reference to `rc4_md5_enc'
e_rc4_hmac_md5.c:(.text+0x4ea): undefined reference to `rc4_md5_enc'
collect2: ld 返回 1
make[2]: *** [link_app.] 错误 1
make[2]:正在离开目录 `/home/qige/openssl/apps'
make[1]: *** [openssl] 错误 2
make[1]:正在离开目录 `/home/qige/openssl/apps'
make: *** [build_apps] 错误 1

参考技术A 1、读一下INSTALL文档
2、make clean清理一下
3、重新来一次
./config --prefix=/usr/local --openssldir=/usr/local/openssl
make;make test;make install

以上是关于ubuntu怎么安装openssl的主要内容,如果未能解决你的问题,请参考以下文章

CentOS 安装 pip3

openssl/ssl.h,该怎么处理

pyspider 在ubuntu上安装失败怎么搞?

Linux下编译安装openssl1.0.1d时遇到问题怎么办?

centos openssl devel 安装位置怎么查

怎么检查nginx服务器有没有安装好