[問題] 在configure PHP 5.0.0RC2出現的錯誤信息
錯誤信息如下:
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking whether libxml build works... no
configure: error: build test failed. Please check the config.log for details.
哪查詢config.log後,找到以下相關信息
configure:18094: gcc -o conftest -g -O2 -R/usr/local/lib -L/usr/local/lib conf
-lm -lxml2 -lz -liconv -lm 1>&5
/usr/local/lib/libxml2.so: undefined reference to `pthread_cond_signal'
/usr/local/lib/libxml2.so: undefined reference to `pthread_getspecific'
/usr/local/lib/libxml2.so: undefined reference to `pthread_equal'
/usr/local/lib/libxml2.so: undefined reference to `pthread_once'
/usr/local/lib/libxml2.so: undefined reference to `pthread_key_create'
/usr/local/lib/libxml2.so: undefined reference to `pthread_cond_init'
/usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_unlock'
/usr/local/lib/libxml2.so: undefined reference to `pthread_self'
/usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_destroy'
/usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_lock'
/usr/local/lib/libxml2.so: undefined reference to `pthread_cond_wait'
/usr/local/lib/libxml2.so: undefined reference to `pthread_mutex_init'
/usr/local/lib/libxml2.so: undefined reference to `pthread_setspecific'
configure: failed program was:
#line 18083 "configure"
#include "confdefs.h"
char xmlInitParser();
int main() {
xmlInitParser();
return 0;
}
請問這個問題是在哪裡
我有安裝libxml2-2.6.9(用ports安裝的)
然後我的configure的設定是:
/configure --disable-xml --prefix=/usr/local/lang/php --with-apxs2=/usr/local/w
eb/apache2/bin/apxs --enable-force-cgi-redirect --enable-discard-path --enable-f
astcgi --enable-debug --with-config-file-path=/usr/local/conf --enable-safe-mode
--with-exec-dir=/usr/local/lang/php --enable-magic-quotes --with-openssl=/usr -
-with-zlib=/usr --with-zlib-dir=/usr --enable-bcmath --with-bz2=/sur --enable-ca
lendar --with-jpeg-dir=/usr/local --with-tiff-dir=/usr/local --enable-filepro --
enable-ftp --with-gd=/usr/local --with-png-dir=/usr/local --with-zlib-dir=/usr/l
ocal --with-freetype-dir=/usr/local --with-gettext=/usr/local --with-iconv=/usr/
local --with-imap=/usr/local/imap --with-imap-ssl=/usr --enable-mbstring --with-
mbstring=tw --with-mcrypt=/usr/local --with-mcve=/usr/local --with-openssl-dir=/
usr --with-mhash=/usr/local --with-pdflib=/usr/local --with-pgsql=/usr/local/dbm
s/psql --with-mysql=/usr/local/dbms/mysql --with-pspell=/usr/local --enable-sysv
msg --enable-sysvsem --enable-sysvshm --with-pear --with-mime-magic=/usr/share/m
isc/magic.mime --enable-sockets
因為我的設定裡頭有--disable-xml,照理說他不應該會出現在這樣錯誤信息嚕~~
所以問一下問題在哪裡
--
※ 來自:風與塵埃的對話 (wdbbs.net)
㊣ Post by lamb100 from 61.59.44.204
◢ ◣ ███◣ ▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂
█◢◣█ █ █ 風與塵埃的對話 BBS ˙ wdbbs.net
◥◤◥◤ ███◤ ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章