【发布时间】:2012-03-08 14:13:37
【问题描述】:
我有两台服务器在 redhat 和 debian 上运行。我正在使用 perl 脚本进行 mysql 备份,在 redhat 中它工作正常。当我在 debian 上运行它时,我收到以下错误:
Can't locate Mysql.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at ./dbbackup.pl line 15.
我用谷歌搜索了这个错误,发现我需要为 perl 安装 mysql 驱动程序。我使用这个命令安装了它:
sudo apt-get install libdbd-mysql-perl
回复如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libdbd-mysql-perl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 189 not upgraded.
我仍然遇到同样的错误。有人可以帮我吗?我需要重新启动任何其他服务吗?
【问题讨论】: