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.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.



Relevant Pages

  • Re: attempt to build 64 bit on Solaris fails
    ... > libraries needed to link with a 64-bit Tk. ... We were running a 32-bit version of Perl ... > Each section below is a summary of the commands used to install it. ...
    (comp.lang.perl.tk)
  • Re: attempt to build 64 bit on Solaris fails
    ... libraries needed to link with a 64-bit Tk. ... We were running a 32-bit version of Perl ... Each section below is a summary of the commands used to install it. ...
    (comp.lang.perl.tk)
  • Perl on Linux and SQL Server 2000 on Windows
    ... There was a time when I did a lot of searching on ways to use Perl ... sitting on Linux to connect SQL Server 2000 sitting on Windows. ... cpan> install DBI ... Install FreeTDS ...
    (comp.os.linux.misc)
  • RE: Please Help !!! Unable to install DBD-Oracle ( I am using perl 5.6 on solaris 8)
    ... Ron, I could be way off here, but the OP mayalready have Perl ... think the original issue was that he tried to use *PPM* to install ... I don't have any Solaris ... you are not the intended recipient, please notify the sender at Wipro ...
    (perl.dbi.users)
  • Re: Installing DBD::File via CPAN
    ... Do you use 'UNINST=1' in the build options for CPAN? ... >> Did you build Perl from source, or install via a RPM or binary distro? ... >>> sender of the delivery error by replying to this message, or notify us ...
    (perl.dbi.users)