通常情况下,我经常搜索并阅读很多内容以解决我的问题,但对于这个特殊问题,它一直非常没有效果.
我正在运行一个64位Ubuntu Linux服务器,我在其上安装了LAMP堆栈,并且libcurl没有SSL支持存在问题,而OS二进制文件确实有SSL支持. PHP无法读取它.当我搜索解决方案并尝试执行以下操作以在安装PHP时启用ssl支持时,我遇到了问题..
./configure .... --with-openssl
...
....
/usr/bin/ld: ext/standard/.libs/info.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
ext/standard/.libs/info.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make: *** [libphp5.la] Error 1
所以,它突然退出了.我尝试做–enable-shared –without-pic参数无济于事.