Perl upgrade / versions problems - path and modules - Linux RAQ 550

Hi,
I wondered if a Perl guru (or just someone who's been through this before...)could help me out of this...
After we started installing contents on a Cobalt RAQ 550, we soon needed extra modules and installed them from Cpan by SSH. It seems some modules launched, like perl -MCPAN -e 'install MIME::Tools' actually started upgrading Perl to 5.8 ?
Basically we now have different paths depending on whether we test Perl by a CGI "environment" script (says
PERL VERSION : 5.006
PERL PATHS: /usr/bin/perl
/usr/local/bin/perl
/usr/share/man/man1/perl.1.gz)

,the command line perl -V,
(gives

Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Apr 12 2003 16:19:26
@INC:
/usr/local/lib/perl5/5.8.0/i686-linux
/usr/local/lib/perl5/5.8.0
/usr/local/lib/perl5/site_perl/5.8.0/i686-linux
/usr/local/lib/perl5/site_perl/5.8.0
/usr/local/lib/perl5/site_perl
)
or the line /usr/bin/perl -V,
(gives
Characteristics of this binary (from libperl):
Compile-time options:
Built under linux
Compiled at Mar 21 2001 01:18:47
@INC:
/usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005
/usr/lib/perl5/site_perl
)

The script that required the modules (namely PerlDesk) still gives the message that 3 Include module are not there - whereas an output from the installed Cpan module shows they are only in the wrong place it seems.
I was advised to change the line
#!/usr/bin/perl -w
to
#!/usr/local/bin/perl -w
on all scripts but that's the last thing I do if I can correct the problem as I'd like...
Isn't possible to update/modify @INC to add /usr/bin/perl to its path, so that it goes to look in each of the two dirs ? I know we can even add custom paths to Perl for example if custom addons were put in another dir.
How can we basically not change any of the two dirs but instruct Perl to use both ?
Can anybody advise on how to solve this ?
more details on request,
best regards;

 

 

 

 

Top