详细报错日志如下:
make[3]: Entering directory `/root/openssl-1.0.2g'
make[4]: Entering directory `/root/openssl-1.0.2g'/usr/bin/ld: libcrypto.a(rsaz_exp.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
libcrypto.a(rsaz_exp.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
使用tar -zxvfopenssl-1.0.2g.tar.gz解压导致该问题,具体原因不明
改用如下方式重新解压文件后可重新编译安装正常:
tar -xf openssl-1.0.2g.tar.gz