[PHP-users 28604] インストールについて。
GOGO 武田
gogo_takeda @ yahoo.co.jp
2006年 3月 2日 (木) 11:55:07 JST
はじめまして。
CentOSにPHPをインストールしようとしたところ、
コンパイルが通らず先に進まない状態です。
Apache2.0.50
MYSQL4.0.20
PostgreSQL7.4.5
PHP5.0.1
各オプションは以下の通りです。
apache
./configure --enable-so
make
make install
mysql
./configure --with-charset=ujis \
--with-extra-charsets=all \
--with-mysqld-user=mysql \
--prefix=/usr/local/mysql
make
make install
postgresql
./configure
gmake
gmake install
php
./configure --with-apxs2=/usr/local/apache2/bin/apxs \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-zlib --enable-mbregex --enable-mbstring \
--enable-trans-sid --with-pgsql=/usr/local/pgsql
エラー内容は以下の通りです。
configure: error: wrong mysql library version or
lib not found. Check config.log for more information.
config.logの内容は以下の通りです
(抜粋部分に関しては自信なし)
configure:62260: ./conftest
configure:62263: $? = 0
configure:62277: result: yes
configure:63051: checking for mcrypt support
configure:63090: result: no
configure:63858: checking for MCVE support
configure:63897: result: no
configure:63905: checking OpenSSL dir for MCVE
configure:63923: result: no
configure:65425: checking for mhash support
configure:65464: result: no
configure:65840: checking whether to include mime_magic support
configure:65879: result: no
configure:66138: checking for MING support
configure:66177: result: no
configure:66899: checking for mnoGoSearch support
configure:66938: result: no
configure:67325: checking for msession support
configure:67364: result: no
configure:68326: checking for mSQL support
configure:68365: result: no
configure:68806: checking for MSSQL support via FreeTDS
configure:68845: result: no
configure:69427: checking for MySQL support
configure:69466: result: no
configure:69474: checking for specified location of the MySQL UNIX socket
configure:69492: result: no
configure:70610: checking for MySQLi support
configure:70649: result: yes
configure:70657: checking whether to enable embedded MySQLi support
configure:70674: result: no
configure:70796: checking for mysql_set_server_option in -lmysqlclient
configure:70826: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/mysql/lib/mysql
-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lnsl -lm conftest.c -lmysqlclient -lz
-lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lxml2 -lz -lm >&5
/tmp/ccYI6y0d.o(.text+0xd): In function `main':
/usr/local/src/php-5.0.1/conftest.c:211: undefined reference to `mysql_set_server_option'
collect2: ld returned 1 exit status
configure:70832: $? = 1
configure: failed program was:
| /* confdefs.h. */
〜〜略〜〜〜
/* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* 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;
| }
configure:70858: result: no
configure:71151: error: wrong mysql library version or lib not found.
Check config.log for more information.
/usr/local/mysql/ 配下にlibはありました。
libraryのバージョンはどうやって確認したらよいのでしょうか?
お手数ですが、ご存知の方ご教授願います。
よろしくお願いいたします。
takeda
--------------------------------------
TSUKAME EIKOU! KAGAYAKE EGAO!
Yahoo! JAPAN JPC OFFICIAL PARTNER INTERNET PORTAL SITE
http://pr.mail.yahoo.co.jp/wintergames/
PHP-users メーリングリストの案内