Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Specify particular Perl path to a module during installation

by CountZero (Bishop)
on Nov 29, 2012 at 20:59 UTC ( #1006355=note: print w/ replies, xml ) Need Help??


in reply to Specify particular Perl path to a module during installation

Could it be that when you run perl Makefile.PL you run the default Perl? You could edit the Makefile.PL to point to your perl 5.16.1.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics


Comment on Re: Specify particular Perl path to a module during installation
Select or Download Code
Re^2: Specify particular Perl path to a module during installation
by space_monk (Chaplain) on Nov 30, 2012 at 08:14 UTC
    I don't think you have to edit Makefile.PL at all as long as you are sure the PATH environment variable points to the 5.16.1 version of perl first before you build the module. Just do perl -v from the command line before running Makefile.PL to make sure.
    A Monk aims to give answers to those who have none, and to learn from those who know more.
      True, but many programs and services on your computer may rely on the "system" Perl to do their jobs. Switching wholesale to a newer Perl may very well cause all kinds of havoc that will be difficult to trace. I'd rather not mess around with such global options, unless there is absolutely no other solution available.

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      My blog: Imperial Deltronics

        Thanks for your replies! I have the same concern that CountZero has. Making changes to the PATH will definitely help me out with the current issue but it might create issues with the existing applications that require version 5.8.8, and that's exactly what i also mentioned in my original post.

        And yes, as CountZero mentioned, i thought about making changes in Makefile.pl itself to point it to 5.16.1 but it wasn't working due to some syntax issue. Today it finally worked. :)

        Thanks again!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006355]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (13)
As of 2014-09-16 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (40 votes), past polls