The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-11-2009
genya01 genya01 is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 1
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:
  • Test::More 0.54 is installed in /usr/lpp/perl/lib/5.8.7
  • Test::More 0.62 is installed in /usr/lpp/perl/lib/site_perl/5.8.7
  • I want to install Email:Abstract 3.001. When I issue the Makefile.PL command, I get this warning:
"Warning: prerequisite Test::More 0.62 not found. We have 0.54."
  • Test::More 0.54 is found first because its library is concativated first in @INC. MakeMaker does not find Test::More 0.62, because the older version was already found.
Question: Can MakeMaker manage several versions of Perl modules during the install?

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
  #2 (permalink)  
Old 06-14-2009
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
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
Reply

Bookmarks

Tags
install, makefile.pl, makemaker, perl module, version

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0