![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Install modules on strawberry perl | byte1918 | Shell Programming and Scripting | 0 | 06-11-2009 10:08 AM |
| How to install perl modules | Anuj8584 | Shell Programming and Scripting | 3 | 03-25-2009 04:56 PM |
| how to install new java versions to 264 version4.0 alpha | rasa_still_here | UNIX for Dummies Questions & Answers | 0 | 11-13-2008 04:01 AM |
| Mac OS X 10.4: Optional Installs may install previous versions of certain application | iBot | OS X Support RSS | 0 | 09-27-2008 08:12 AM |
| How to manage multiple versions of a set of shell and SQL script utilities | DennisB | Shell Programming and Scripting | 2 | 06-23-2004 09:13 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to manage several versions of Perl modules during the install?
Hello, I would really appreciate any advice on this issue:
My Perl Module Environment: /usr/lpp/perl/lib/5.8.7 => has the Perl modules that come with the base Perl installation. Comes first in @INC concatination. /usr/lpp/perl/lib/site_perl/5.8.7 => has all my installed Perl modules that I downloaded from CPAN. Comes last in @INC concatination. Installation Method: ExtUtils::MakeMaker Restrictions: I cannot touch/modify the original Perl installation. This means that I cannot delete any of the pre-installed Perl modules from the /usr/lpp/perl/lib/5.8.7 directory. My Problem: This is a generic problem, with this specific example:
This is what I found in MakeMaker documentation (ExtUtils::MakeMaker - Create a module Makefile - search.cpan.org): "Sometimes older versions of the module you're installing live in other directories in @INC. Because Perl loads the first version of a module it finds, not the newest, you might accidentally get one of these older versions even after installing a brand new version. To delete all other versions of the module you're installing (not simply older ones) set the UNINST variable." Given my restriction of not deleting anything from /usr/lpp/perl/lib/5.8.7, is there a way to indicate to MakeMaker to search through all @INC directories to find the required versions of a Perl Module? Any suggestions for a workaround? Thanks a lot! Genya |
|
||||
|
Perl just obeys the ordering imposed by @INC. So, I guess you can get away with it by force prepending '/usr/lpp/perl/lib/site_perl/5.8.7' to @INC while you do "perl Makefile.PL". It does no harm if you have the same path twice in the @INC because Perl just uses the first one.
Try adding -I/usr/lpp/perl/lib/site_perl/5.8.7 to the command and tell us how it goes. i.e. Code:
perl -I/usr/lpp/perl/lib/site_perl/5.8.7 Makefile.PL |
![]() |
| Bookmarks |
| Tags |
| install, makefile.pl, makemaker, perl module, version |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|