安装openssl的时候出现了下面的问题,试了n种方法,还是有编译错误,有装成功过的朋友们,麻烦看一下,谢谢
/usr/bin/ld: libcrypto.a(cbc128.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
libcrypto.a(cbc128.o): could not read symbols: Bad value
collect2: ld 返回 1
make[4]: *** [link_a.gnu] 错误 1
make[4]: Leaving directory `/home/source/openssl-1.0.0s'
make[3]: *** [do_linux-shared] 错误 2
make[3]: Leaving directory `/home/source/openssl-1.0.0s'
make[2]: *** [libcrypto.so.1.0.0] 错误 2
make[2]: Leaving directory `/home/source/openssl-1.0.0s'
make[1]: *** [shared] 错误 2
make[1]: Leaving directory `/home/source/openssl-1.0.0s/crypto'
make: *** [build_crypto] 错误 1
上面是make以后出现的错误。
下面是执行时的命令:
./config --prefix=/home/openssl enable-shared
甚至执行的时候加上了CFLAGS="-O3 -fPIC"以后再make的时候还是会出现上面的错误。
libcrypto.a(cbc128.o): could not read symbols: Bad value
collect2: ld 返回 1
make[4]: *** [link_a.gnu] 错误 1
make[4]: Leaving directory `/home/source/openssl-1.0.0s'
make[3]: *** [do_linux-shared] 错误 2
make[3]: Leaving directory `/home/source/openssl-1.0.0s'
make[2]: *** [libcrypto.so.1.0.0] 错误 2
make[2]: Leaving directory `/home/source/openssl-1.0.0s'
make[1]: *** [shared] 错误 2
make[1]: Leaving directory `/home/source/openssl-1.0.0s/crypto'
make: *** [build_crypto] 错误 1
上面是make以后出现的错误。
下面是执行时的命令:
./config --prefix=/home/openssl enable-shared
甚至执行的时候加上了CFLAGS="-O3 -fPIC"以后再make的时候还是会出现上面的错误。
...全文
相关推荐
详解Linux(centos7)下安装OpenSSL安装图文方法
主要介绍了详解Linux(centos7)下安装OpenSSL安装图文方法,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
windows下安装配置openssl环境
windows 32位操作系统下安装配置openssl环境,及安装过程中一些错误解决
php无需编译安装openssl扩展的实现方法
下面小编就为大家分享一篇php无需编译安装openssl扩展的实现方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧
openssl安装及命令
windows和linux下安装openssl并实现加密解密文件,数字签名等功能
php7安装openssl扩展方法
下面小编就为大家分享一篇php7安装openssl扩展方法,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧


