安装openssl的时候出现了下面的问题,试了n种方法,还是有编译错误,有装成功过的朋友们,麻烦看一下,谢谢
燕赵一剑 2015-09-06 11:08:46 /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的时候还是会出现上面的错误。