[PHP-users 33302] MySQLとPHP5が関連付けさせたい

ken @ lin.bz ken @ lin.bz
2008年 2月 19日 (火) 20:57:19 JST


PHP初心者の小芝と申します。

 PHP4から5に上げようとインストールしようとしたとこ 
ろ、./configure のところでどうしてもMySQLに繋げられ 
ずエラーが出てしまいます。

 良くあるトラブルなのか、いろいろサイトで見かけましたが自分のに 
合った原因を見つけることができませんでした。

 また、仕方がないので、下記の with-mysqlだけ省いて 
PHP5をインストールしましたが、後でMySQLと関連づけられるの 
でしょうか。

 初心者的な内容で失礼いたしますが、どのようにしたら良いのかアド 
バイスありましたらお願いいたします。

*使用環境 ------------------------------------
 PowerMac G5 Tiger
 Apache2 2.2.6
 MySQL 4.1
 PHP 5.2

  --with-mysql=/usr/local/mysql
   ↓
error: mysql configure failed.

* config.log の MySQL部分 ----------------
  mysql_close()
; return 0; }
configure:59846: checking for mysql_error in -lmysqlclient
configure:59865: gcc -o conftest -I/usr/include -g -O2  -no-cpp- 
precomp -L/usr/local/mysql/lib -L/usr/local/mysql/lib -liconv -L/usr/ 
lib  -L/usr -L/usr conftest.c -lmysqlclient  -lz -liconv -lz -lm  - 
lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm 1>&5
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: truncated or  
malformed archive: /usr/local/mysql/lib/libmysqlclient.a (ranlib  
structures in table of contents extends past the end of the table of  
contents, can't load from it)
collect2: ld returned 1 exit status
configure: failed program was:
#line 59854 "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();
  -----------------------------------------------







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