1) With regards to perl modules, don't mess with rpms. They're easy to build
and install (especially if you do 'perl -MCPAN -e shell'). 

2) As a fix, at the top of your script you can do: use lib
qw(/usr/lib/perl5/site_perl);



On 05-Aug-99 Andrew Morton wrote:
> Running Mandrake 6.
> 
> I needed the Net::Telent perl module so I pulled
> perl-Net-Telnet-3.01-1.i386.rpm from
> http://rufus.w3.org/linux/RPM/index.html. This is a redhat package, so I
> expected it to just work.
> 
> However that RPM installs the perl package in
> /usr/lib/perl5/site_perl/usr/lib/perl5/site_perl/Net/Telnet.pm and perl
couldn't find it.
> 
> The perl @INC path defaults to
> 
> /usr/lib/perl5/5.00503/i386-linux
> /usr/lib/perl5/5.00503
> /usr/lib/perl5/site_perl/5.005/i386-linux
> /usr/lib/perl5/site_perl/5.005
> 
> My workaround was to set PERLLIB to /usr/lib/perl5/site_perl in
> /etc/profile.d/perl.sh.
> 
> 
> My question to the experts is: what's going on?  Did I do something
> wrong, or is perl built wrongly, or was that CPAN package built wrongly?
> 
> 
> Thanks,
> Andrew.

Reply via email to