Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Perl upgrade

by prashantktyagi (Scribe)
on Jun 13, 2012 at 09:27 UTC ( #975945=perlquestion: print w/ replies, xml ) Need Help??
prashantktyagi has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks, Need an advise. Please help.
Currently my application (platform independent) use bundled Perl (5.6). I need to upgrade it to latest stable. I know it is a huge gap.It may happen some function can be deprecated to this version (5.14 I am thinking).
Can you please advise the best way I can do this.

Comment on Perl upgrade
Re: Perl upgrade
by moritz (Cardinal) on Jun 13, 2012 at 09:32 UTC
      Hi..

      after upgarde Executing command `pwd` on shell gives this error..

      Legacy library will be removed from the Perl core distribution in the + next r release. Please install it from the CPAN distribution Perl4::CoreLib +s. It eing used at , line .
      I am not getting this...`pwd` is a part of unix shell..Am I missing something?

        I am not getting this...`pwd` is a part of unix shell..Am I missing something?

        Yes, the full path to this pwd program

        Do not add @INC to your $PATH

Re: Perl upgrade
by Ralesk (Pilgrim) on Jun 13, 2012 at 11:47 UTC

    You should leave the systemís 5.6 alone as probably too many other things depend on it. Use perlbrew to install a separate Perl with whatever modules you wish (using cpanm installed by perlbrew), and then work on your software to make it compatible with the more modern Perl release of your choice.

      I definitely “second the motion” that you should not disturb the operating system’s installed version of Perl since many system management tools could depend on it.

      If you are indeed using a system with a Perl that old (e.g. CentOS 5) you probably should seriously consider upgrading it.

        Hi Monks..

        Please forgive me for my unawareness as I am novice.Actually in my application bundled Perl , Path( lib, site , bin etc) are in different directory... What I did right now I installed Perl on my machine and copied it into my application correct directory ( as lib in <app>/perl5/lib )...

        But I am having problem in installing module...can't run cpan from this extracted perl

        Please any advise..
Re: Perl upgrade
by Ralesk (Pilgrim) on Jun 14, 2012 at 06:34 UTC

    You mention Windows and you also mention bundled Perl ó so what exactly is this? An application made with ActivePerl for example?

    I think we definitely need more detail to be able to help you properly.

      Hi..

      It is like this my application is perl based so we bundled perl interpreter inside to run application.

      it is like
      Bin path : <app-home>/Windows/perl5/bin/per5
      Lib path : <app-home>/Windows/perl5/lib/per5/lib
      Site path: <app-home>/Windows/perl5/lib/per5/site
      Problem is what i did I copied all files from my machine perl to these locations..
      But I need to install several modules into "site Path" ..what I did I removed all path related to machine perl and point it to application perl.. when I do cpan from <app-home>Windows/perl5/bin..it failed saying
      Having "<app-home>Windows/perl5/lib"<br/> looking c:/Perl/lib<br/>
      What is the best way to install modules into these custom locations?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2014-07-30 02:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls