perl - DBD::Sybase error -
first of all, let me thank time , knowledge sharing, i'm kind of ignorant in trems of perl modules
i have 64bit ubuntu server 12.04, perl version 14, subversion 2 (v5.14.2) built x86_64-linux-gnu-thread-multi , cpan exploration , modules installation (v2.10).
i'm trying use perl script accessing microsoft sql server , i'm having hard time upon dbd::sybase module
when try install dbd::sybase cpan tells me it's installed:
cpan[1]> install dbd::sybase reading '/root/.cpan/metadata' database generated on wed, 29 apr 2015 14:53:21 gmt dbd::sybase date (1.15).
i find multiple sybase.pm files on filesystem, of them under perl path
root@server:# find /* -name sybase.pm /home/usriten/download/dbd-sybase-1.15/sybase.pm /root/.cpan/build/dbd-sybase-1.15-ttui0t/sybase.pm /root/.cpan/build/dbd-sybase-1.15-knqdf7/sybase.pm /root/.cpan/build/dbd-sybase-1.15-rzgcta/sybase.pm /usr/local/lib/perl/5.14.2/sybase.pm /usr/local/lib/perl/5.14.2/dbd/sybase.pm /usr/local/lib/perl/5.14.2/dbi/sybase.pm
but when try run script returns error on line calls 'if ($self->{handle} = dbi->connect('
# ./check_mssql_health --hostname <mssql_server_ip> --username <sql_user> --password <pass> --mode connection-time mode connection-time critical - cannot connect <mssql_server_ip>. install_driver(sybase) failed: can't locate loadable object module dbd::sybase in @inc (@inc contains: . /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl) @ (eval 10) line 3 compilation failed in require @ (eval 10) line 3. perhaps module dbd::sybase requires hasn't been installed @ ./check_mssql_health line 3192
i've spent lot of time scavenging posts did not find solution or @ least 1 understand , implement.
best regards, sebastiĆ£o
when try install dbd::sybase cpan tells me it's installed:
that means found dbd/sybase.pm. no tests performed; module isn't loaded.
in act of desperation i've copied sybase.pm dbd/
that's cause of error you're asking about. perl finding .pm
copied over, not other files created part of installation process.
delete files created[1], install module (e.g. using system's package manager if has one, or cpan dbd::sybase
if doesn't).
you appear have created @ least following files:
/usr/local/lib/perl/5.14.2/sybase.pm
/usr/local/lib/perl/5.14.2/dbd/sybase.pm
/usr/local/lib/perl/5.14.2/dbi/sybase.pm
Comments
Post a Comment