At Mon, 13 May 2002 18:30:10 +1000, Tony  wrote:
> I am trying to run a perl program which has in it
> 
> use HTML::Entities ();
> 
> [tony@ringo FetchYahoo]$ ./fetchyahoo.pl --help
> Can't locate HTML/Entities.pm in @INC (@INC contains:
> /usr/lib/perl5/5.6.1/i386-linux /usr/lib/perl5/5.6.1
> /usr/lib/perl5/site_perl/5.6.1/i386-linux /usr/lib/perl5/site_perl/5.6.1
> /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0
> /usr/lib/perl5/site_perl .) at ./fetchyahoo.pl line 40.
> BEGIN failed--compilation aborted at ./fetchyahoo.pl line 40.
> 
> [root@ringo rpms]# ls -l
> /usr/lib/perl5/vendor_perl/5.6.1/i386-linux/HTML/Entities.pm -r--r--r--
> +1 root     root        11359 Nov  6  2001
> +/usr/lib/perl5/vendor_perl/5.6.1/i386-linux/HTML/Entities.pm
> [root@ringo rpms]#
> 
> Question:  How do I tell the perl program I want to run where
> HTML::Entities is?

one of either:

 perl -I/usr/lib/perl5/vendor_perl/5.6.1/i386-linux fetchyahoo.pl --help

 export PERL5LIB=/usr/lib/perl5/vendor_perl/5.6.1/i386-linux
 ./fetchyahoo.pl --help

 near the beginning of fetchyahoo.pl, add:
  use lib '/usr/lib/perl5/vendor_perl/5.6.1';
 (note this is smart enough to find the i386-linux subdirectory)


how did something get installed into such a strange path?

if it was from a distribution package, its a bug.

-- 
 - Gus
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to