本文介绍了找不到DBI.pm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试启动此脚本:
I'm trying to launch this script:
#!/usr/bin/perl
use DBI;
my $dbh = DBI->connect( 'dbi:Oracle:host=lonlin2;sid=TIMFX1AD;port=1524','xbsesdbo','xbsesdbo123' ) || die ( $DBI::errstr . "\n" );
my $query= "SELECT * FROM product_elements WHERE element_id = 1001";
my $queryHandler= $dbh->prepare($query);
my $result= $queryHandler->execute();
open(fileHandler,"> note.txt");
print fileHandler "Risultato query: $result\n";
my $e= $dbh->disconnect();
close(fileHandler);
启动此脚本时,我收到此错误:
When I launch this script I receive this error:
我已经安装好了!! DBI.pm已安装!!
I've got all installed!! DBI.pm is installed !!
推荐答案
如果您具有root用户,请输入控制台(Debian/Ubuntu):
If you have root, type in console (Debian/Ubuntu):
sudo apt-get install libdbi-perl
这篇关于找不到DBI.pm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!