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

石丸 清基 melodian @ saturn.dti.ne.jp
2008年 2月 20日 (水) 01:49:04 JST


石丸と申します。

もしかすると、駄レスかもしれませんが、
phpなら、MacPorts またはfinkでインストールすれば
楽にできそうですが。

http://macwiki.sourceforge.jp/wiki/index.php/MacPorts
http://d.hatena.ne.jp/sesejun/20071113/p1

既にご存知で、あえて、ソースコンパイルという方針でしたらすみ 
ません。


On 2008/02/19, at 20:57, ken @ lin.bz wrote:

> 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 mailing list  PHP-users @ php.gr.jp
> http://ml.php.gr.jp/mailman/listinfo/php-users
> PHP初心者のためのページ - 質問する前にはこちらをお読 
> みください
> http://oldwww.php.gr.jp/php/novice.php3



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