Perl CPAN DBD:mysql error - Linux

By Steve
at 2008-06-17T01:34
at 2008-06-17T01:34
Table of Contents
本來跑好好的MT 去讀取MySQL
結果最近忽然出現
Got an error: install_driver(mysql) failed: Can't load
'/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so'
for module DBD::mysql: libmysqlclient_r.so.12: cannot open shared object
file: No such file or directory at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229. at (eval
4) line 3 Compilation failed in require at (eval 4) line 3. Perhaps a
required shared library or dll isn't installed where expected at
/var/www/cgi-bin/mt/lib/MT/ObjectDriver/DBI/mysql.pm line 48
我去查的RPM 結果
[root@www RPMS]# rpm -qa|grep -i mysql
php-mysql-4.3.0-2mdk
MySQL-client-4.0.11a-5mdk
MySQL-common-4.0.11a-5mdk
MySQL-bench-4.0.11a-5mdk
perl-Mysql-1.22_19-6mdk
libmysql12-4.0.11a-5mdk
MySQL-4.0.11a-5mdk
使用 CPAN 更新的時候出現 error
CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.007.tar.gz
Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.
Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
GOOGLE 很久 還沒找到正確解法
有人有任何idea 嗎?
--
結果最近忽然出現
Got an error: install_driver(mysql) failed: Can't load
'/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi/auto/DBD/mysql/mysql.so'
for module DBD::mysql: libmysqlclient_r.so.12: cannot open shared object
file: No such file or directory at
/usr/lib/perl5/5.8.0/i386-linux-thread-multi/DynaLoader.pm line 229. at (eval
4) line 3 Compilation failed in require at (eval 4) line 3. Perhaps a
required shared library or dll isn't installed where expected at
/var/www/cgi-bin/mt/lib/MT/ObjectDriver/DBI/mysql.pm line 48
我去查的RPM 結果
[root@www RPMS]# rpm -qa|grep -i mysql
php-mysql-4.3.0-2mdk
MySQL-client-4.0.11a-5mdk
MySQL-common-4.0.11a-5mdk
MySQL-bench-4.0.11a-5mdk
perl-Mysql-1.22_19-6mdk
libmysql12-4.0.11a-5mdk
MySQL-4.0.11a-5mdk
使用 CPAN 更新的時候出現 error
CPAN.pm: Going to build C/CA/CAPTTOFU/DBD-mysql-4.007.tar.gz
Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.
Cannot find the file 'mysql_config'! Your execution PATH doesn't seem
GOOGLE 很久 還沒找到正確解法
有人有任何idea 嗎?
--
Tags:
Linux
All Comments
Related Posts
有辦法 Monitor 某隻檔案是哪個程式產生的嗎

By Lucy
at 2008-06-16T23:34
at 2008-06-16T23:34
請問crontab如何設定隔週工作?

By Frederica
at 2008-06-16T22:47
at 2008-06-16T22:47
本機流量統計的軟體

By Elma
at 2008-06-16T20:51
at 2008-06-16T20:51
請問一下 安裝新顯卡

By Yuri
at 2008-06-16T20:49
at 2008-06-16T20:49
Debian 的 pure-ftpd 設定

By Callum
at 2008-06-16T17:28
at 2008-06-16T17:28