[PHP-users 28750] PHP5とMySQL5のインストールでエラーが発生

tatami @ kun.ne.jp
2006年 3月 20日 (月) 14:27:43 JST


始めまして桜と申します

MySQL5のバイナリをインストールしているLinux(CentOS)マシンに
PHP5を以下のconfigureでインストールしようとした所
configureのMySQLiの部分でエラーが発生しました。
configureの出力結果とconfig.logを下記に記述しました。
おわかりになられるかたはいらっしゃいますでしょうか?
MySQLはバイナリ版なのでパス等、何か設定する必要があるのでしょうか?



./configure \
--enable-bcmath \
--enable-calendar \
--enable-dio \
--enable-exif \
--enable-ftp \
--enable-mbstring \
--enable-mbregex \
--enable-shmop \
--enable-soap \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--enable-yp \
--enable-zend-multibyte \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-bz2 \
--with-config-file-path=/etc \
--with-mcrypt \
--with-mime-magic \
--with-mod_charset \
--with-xmlrpc \
--with-xsl \
--without-iconv \
--with-gd --with-jpeg-dir=/usr --with-zlib-dir=/usr --with-freetype-dir=
/usr \
--with-gettext \
--enable-gd-jis-conv \
--enable-gd-native-ttf \
--with-ttf \
--enable-sqlite-utf8 \
--enable-dba \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--enable-embedded-mysqli \
--without-mysql \
--prefix=/usr/php/php-5.1.2


---configure実行後の出力結果---
<省略>
checking whether to enable embedded MySQLi support... yes
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check 
config.log for more information.


-------config.log----------
configure:60094: checking for MySQLi support
configure:60140: checking whether to enable embedded MySQLi support
configure:60286: checking for mysql_set_server_option in -lmysqlclient
configure:60305: gcc -o conftest -g -O2 -pthread  -D_REENTRANT -Wl,-
rpath,/usr/local/mysql/lib -L/usr/local/mysql/lib  -lmysqld -lz -lcrypt 
-lnsl -lm -lrt conftest.c -lmysqlclient  -lmcrypt -lltdl -lfreetype -
lpng -lz -ljpeg -lbz2 -lz -lresolv -lm -ldl -lnsl  -lxml2 -lz -lm -lxml2 
-lz -lm 1>&5
/usr/bin/ld: cannot find -lmysqld
collect2: ld returned 1 exit status
configure: failed program was:
#line 60294 "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_set_server_option();

int main() {
mysql_set_server_option()
; return 0; }





PHP-users メーリングリストの案内