- 论坛徽章:
- 0
|
php5源文件,执行./configure --prefix=/opt/php5 --with-apxs2=/opt/apache2/bin/apxs --with-pic --with-pear=/usr/share/pear --with-bz2 --enable-mbstring --with-pcre-regex --enable-sockets --with-zlib --with-ncurses --with-mime-magic=/usr/share/magic.mime --with-freetype-dir --with-png-dir=/usr --with-gd=shared --enable-gd-native-ttf --with-libexpat-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --enable-magic-quotes --enable-xml --with-mysql时出错退出:
。。。。。。
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
checking for mysql_close in -lmysqlclient... no
checking for mysql_error in -lmysqlclient... no
configure: error: mysql configure failed. Please check config.log for more information.
config.log出错部分内容:
configure:59418: checking for MySQL UNIX socket location
configure:59609: checking for mysql_close in -lmysqlclient
configure:59628: gcc -o conftest -I/usr/include -g -O2 -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib conftest.c -lmysqlclient -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/lib/libssl.so.4: undefined reference to `krb5_cc_get_principal'
/lib/libssl.so.4: undefined reference to `krb5_kt_close'
/lib/libssl.so.4: undefined reference to `krb5_rc_get_lifespan'
/lib/libssl.so.4: undefined reference to `krb5_rc_destroy'
/lib/libssl.so.4: undefined reference to `krb5_kt_get_entry'
/lib/libssl.so.4: undefined reference to `krb5_rc_initialize'
collect2: ld returned 1 exit status
configure: failed program was:
#line 59617 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_close();
int main() {
mysql_close()
; return 0; }
configure:59851: checking for mysql_error in -lmysqlclient
configure:59870: gcc -o conftest -I/usr/include -g -O2 -Wl,-rpath,/usr/lib/mysql -L/usr/lib/mysql -L/usr/lib -Wl,-rpath,/usr -L/usr conftest.c -lmysqlclient -lz -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm 1>&5
/lib/libssl.so.4: undefined reference to `krb5_cc_get_principal'
/lib/libssl.so.4: undefined reference to `krb5_kt_close'
/lib/libssl.so.4: undefined reference to `krb5_rc_get_lifespan'
/lib/libssl.so.4: undefined reference to `krb5_rc_destroy'
/lib/libssl.so.4: undefined reference to `krb5_kt_get_entry'
/lib/libssl.so.4: undefined reference to `krb5_rc_initialize'
collect2: ld returned 1 exit status
configure: failed program was:
#line 59859 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_error();
int main() {
mysql_error()
; return 0; }
1253,1 Bot |
|