1
我在我的系統上安裝了Apache 2.4在FreeBSD 10安裝PHP提供了編譯錯誤
./configure --enable-so
那麼MySQL得到了設置和使用沒有問題的運行。但現在我想用這些參數安裝PHP:
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
而且在使我收到的錯誤:
ext/standard/info.o: In function `php_info_print':
/root/php-5.5.13/ext/standard/info.c:97: undefined reference to `ts_resource_ex'
/root/php-5.5.13/ext/standard/info.c:97: undefined reference to `ts_resource_ex'
/root/php-5.5.13/ext/standard/info.c:97: undefined reference to `ts_resource_ex'
/root/php-5.5.13/ext/standard/info.c:97: undefined reference to `ts_resource_ex'
ext/standard/info.o: In function `php_info_printf':
/root/php-5.5.13/ext/standard/info.c:83: undefined reference to `ts_resource_ex'
ext/standard/info.o:/root/php-5.5.13/ext/standard/info.c:97: more undefined references to `ts_resource_ex' follow
ext/standard/info.o: In function `php_print_info':
/root/php-5.5.13/ext/standard/info.c:869: undefined reference to `executor_globals_id'
/root/php-5.5.13/ext/standard/info.c:872: undefined reference to `executor_globals_id'
/root/php-5.5.13/ext/standard/info.c:875: undefined reference to `executor_globals_id'
/root/php-5.5.13/ext/standard/info.c:878: undefined reference to `executor_globals_id'
ext/standard/info.o: In function `php_info_print':
/root/php-5.5.13/ext/standard/info.c:97: undefined reference to `ts_resource_ex'
/root/php-5.5.13/ext/standard/info.c:97: undefined reference to `ts_resource_ex'
/root/php-5.5.13/ext/standard/info.c:97: undefined reference to `ts_resource_ex'
/root/php-5.5.13/ext/standard/info.c:97: undefined reference to `ts_resource_ex'
/root/php-5.5.13/ext/standard/info.c:97: undefined reference to `ts_resource_ex'
ext/standard/info.o:/root/php-5.5.13/ext/standard/info.c:97: more undefined references to `ts_resource_ex' follow
ext/standard/info.o: In function `php_print_gpcse_array':
/root/php-5.5.13/ext/standard/info.c:204: undefined reference to `executor_globals_id'
ext/standard/info.o: In function `php_info_print':
/root/php-5.5.13/ext/standard/info.c:97: undefined reference to `ts_resource_ex'
/root/php-5.5.13/ext/standard/info.c:97: undefined reference to `ts_resource_ex'
/root/php-5.5.13/ext/standard/info.c:97: undefined reference to `ts_resource_ex'
/root/php-5.5.13/ext/standard/info.c:97: undefined reference to `ts_resource_ex'
ext/standard/info.o: In function `php_info_print_html_esc':
/root/php-5.5.13/ext/standard/info.c:69: undefined reference to `ts_resource_ex'
ext/standard/info.o:/root/php-5.5.13/ext/standard/info.c:97: more undefined references to `ts_resource_ex' follow
cc: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1
Stop.
make: stopped in /root/php-5.5.13
點我在正確的方向PLZ :)
如果我從端口安裝,不會創建文件libphp5.so –
@Nordenheim檢查端口的'pkg-plist';你必須啓用EMBED選項來獲得'libphp5.so'。 –