今になってapacheのerror_logに変なエラーが出ているのが分かった。
File 'NONEXISTENT/charsets/?.conf' not found (Errcode: 2)
Character set '#12' is not a compiled character set and is not specified in the 'NONEXISTENT/charsets/Index' file
WebのphpでMySQLを操作するたびに出力している。
ググったら同じような症状とその対策法が…
File 'NONEXISTENT/charsets/?.conf' not found (Errcode: 2)
Character set '#12' is not a compiled character set and is not specified in the 'NONEXISTENT/charsets/Index' file
WebのphpでMySQLを操作するたびに出力している。
ググったら同じような症状とその対策法が…
http://miya0.dyndns.org/pc/apache/php-mysql.html
http://www.mysql.gr.jp/mysqlml/mysql/msg/8601
http://ns1.php.gr.jp/pipermail/php-users/2003-October/019256.html
上記を参考に自分が行った対処は以下のとおり。
$ cd /usr/local/lib/mysql/
# ln -s /usr/local/include/mysql/ include
# ln -s /usr/local/lib/mysql/ lib
phpのconfigureに
$ ./configure --with-mysql=/usr/local/lib/mysql
configureは無事完了したが、今度はphpのmakeでエラーが
undefined reference to 'mysql_drop_db'
undefined reference to 'mysql_create_db'
またまたGoogle先生に聞いたところ、
http://www.databasebank.com/programmers/frm_detail.php?v_id=1393
という対処法を発見。
早速、vi /usr/local/src/php-4.2.2/ext/mysql/php_mysql.cのPHP_FUNCTION(mysql_drop_db)をコメントにしてmake!
ふぅ~ やっとコンパイル通ったぁ。
んで、apacheをstop、 make install これも問題なし。
apacheをstartしてwebアクセス。
結果は、エラーも出ず、MySQLも一通り動いているようで安心した。
参考にさせて頂いたサイト様に感謝感謝。
http://www.mysql.gr.jp/mysqlml/mysql/msg/8601
http://ns1.php.gr.jp/pipermail/php-users/2003-October/019256.html
上記を参考に自分が行った対処は以下のとおり。
$ cd /usr/local/lib/mysql/
# ln -s /usr/local/include/mysql/ include
# ln -s /usr/local/lib/mysql/ lib
phpのconfigureに
$ ./configure --with-mysql=/usr/local/lib/mysql
configureは無事完了したが、今度はphpのmakeでエラーが
undefined reference to 'mysql_drop_db'
undefined reference to 'mysql_create_db'
またまたGoogle先生に聞いたところ、
http://www.databasebank.com/programmers/frm_detail.php?v_id=1393
という対処法を発見。
早速、vi /usr/local/src/php-4.2.2/ext/mysql/php_mysql.cのPHP_FUNCTION(mysql_drop_db)をコメントにしてmake!
ふぅ~ やっとコンパイル通ったぁ。
んで、apacheをstop、 make install これも問題なし。
apacheをstartしてwebアクセス。
結果は、エラーも出ず、MySQLも一通り動いているようで安心した。
参考にさせて頂いたサイト様に感謝感謝。
Trackback: 0
- TrackBack URL for this entry
- http://www.furuken.net/blog/action.php?action=plugin&name=TrackBack&tb_id=125
- Listed below are links to weblogs that reference
- MySQLとphpでエラーが発生 from ぼそぼそ











