尝试迁移现有的 SITE ONE - 到我的本地服务器SITE TWO
但出现此错误。
请帮忙
[Fri Apr 24 04:17:08 2015] [error] [client 59.96.252.161] [Fri Apr 24 04:17:08 2015] t.pl: Can't locate Mysql/Statement.pm in @INC (@INC contains: . /home/etkhost1/perl5/lib/perl5 /home/etkhost1/perl5/lib/perl5/x86_64-linux-thread-multi /home/etkhost1/perl/usr/local/lib/perl5/5.8.8/x86_64-linux /home/etkhost1/perl/usr/local/lib/perl5/5.8.8 /home/etkhost1/perl/usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /home/etkhost1/perl/usr/local/lib/perl5/site_perl/5.8.8 /home/etkhost1/perl/usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl) at Mysql.pm line 12.
sub info {
my $q = new CGI;
my $db = Mysql->connect('localhost','X','Y','Z');
my $filing_status = $postFields{ "filing_status" };
my $street_address = $postFields{ "street_address" };
my $country = $postFields{ "country" };
my $po_box = $postFields{ "po_box" };
my $apt = $postFields{ "apt" };
my $city = $postFields{ "city" };
my $state = $postFields{ "state" };
my $zip = $postFields{ "zip" };
请您参考如下方法:
看来您需要安装DBD::mysql
更新
@ThisSuitIsBlackNot
指出最新版本的 DBD::mysql
不包含 Mysql
模块。您可以通过 downloading version 3.0008 修复该问题并手动安装。安装模块的说明位于 perlmodinstall