[Israel.pm] module is up to data but i can't run it

Yuval Yaari yuval at windax.com
Wed Jan 18 12:03:51 PST 2006


Kfir Lavi wrote:
> Hi,when running:perl -MCPAN -e 'install Class::DBI::Loader::mysql'I get:Class::DBI::Loader::mysql is up to date.
> But when runnning:perl -e ' use Class::DBI::Loader::mysql;'I get:Can't locate Class/DBI/mysql.pm in @INC (@INC contains: /etc/perl/usr/lib/perl5/site_perl/5.8.6/i686-linux/usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/usr/lib/perl5/vendor_perl/5.8.6/i686-linux/usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6/usr/local/lib/site_perl .) at/usr/lib/perl5/site_perl/5.8.6/Class/DBI/Loader/mysql.pm line 8.Compilation failed in require at -e line 1.BEGIN failed--compilation aborted at -e line 1.
> Is there a problem with the path?
There's no problem with the path. perl actually loads 
Class::DBI::Loader::mysql -- it just can't find Class::DBI::mysql...
Look at what module you're use-ing, and what perl complains it can't find...
(See the difference? No "::Loader"... Which is weird, as it should 
depend on it)

perl -MCPAN -e 'install Class::DBI::mysql'

HTH,

  --Yuval




More information about the Perl mailing list