Re: add @INC directory



William wrote:
Hello, I have just upgrade my perl-5.8.8 to perl-5.10 , this new perl
is installed at /usr/local/bin/perl I have install a lot of modules
in the old perl directory, so I have problem of using the new perl
version because of many uninstalled module, should reinstalled all
the modules that I need into the new perl directory or make my new
perl @INC to include the @INC of the old perl ?

If appending the directory of old perl @INC to new perl @INC would
just fine, how can I configure the @INC of new perl PERMANENTLY ?
Other than using "use lib @DIR" ? I thought of using "export
PER5LIB=...." , but not sure how to make it permanently all the time?

You should have read the Install file before installing the new version.
All your questions are answered there; see in particular
http://search.cpan.org/~rgarcia/perl-5.10.0/INSTALL#Coexistence_with_earlier_versions_of_perl_5

You may now want to recompile perl to get the @INC you want.

Thanks, I have read more than half of it, but I am just too haste especially for slow reader, lol. I have reinstalled all the modules of old perl into new perl. Maybe it's better, in case I would need the perl 5.8.8 again.

Thanks.


Send instant messages to your online friends http://uk.messenger.yahoo.com
.



Relevant Pages

  • Re: Perl Installation Copied to Another Machine
    ... > machine and then copy the Perl directory to a second machine and have it ... I 've got all the Perl modules installed correctly on the ... > Should I make Perl or DBI on the second machine? ... Some modules have underlying C routines and install software in non-obvious places. ...
    (comp.lang.perl.misc)
  • Re: Active State perl for windows not working.
    ... TIA Steve ... start a command window, change to the perl directory ... set the path each time you use perl, or do a re-install and allow the ...
    (comp.lang.perl.misc)
  • Re: Perl Installation Copied to Another Machine
    ... > I 've got all the Perl modules installed correctly on the first machine including ... After copying the perl directory to the second ... > Should I make Perl or DBI on the second machine? ... and maybe some other install type things. ...
    (comp.lang.perl.misc)
  • Re: Perl Installation Copied to Another Machine
    ... > machine and then copy the Perl directory to a second machine and have it ... Which Perl directory? ... If your machines are exactly alike (for some definition of "exactly"; ...
    (comp.lang.perl.misc)
  • Re: How to move perl from one PC to another PC (windows XP)
    ... I'd like to copy them to another PC/ windows xp, for running same perl ... find all ".pl" key in windows registry an export these to files. ... On 2nd PC copy whole Perl directory from 1st PC to the same directory on 2nd PC, add path to Perl into Path system variable and import all registry keys from files. ... Petr Vileta, Czech republic ...
    (comp.lang.perl.misc)