Wednesday, November 03, 2004

Check if a Perl Module is Installed

root@web-rshack2 perl5]# perl (do a Enter)
use Image::GD::Thumbnail (In the Blank line type use and whole Perl
module)
do a ctrl - d this shuld not give any error which means perl module is
Insatlled.


[root@web-rshack2 perl5]# perl
use Image::GD::Thumbnail (Ctrl-d)
[root@web-rshack2 perl5]# perl
use tete(ctrl-d)
Can't locate tete.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) at
- line 1.
BEGIN failed--compilation aborted at - line 1.