http://www.perlmonks.org?node_id=437218


in reply to Re: Solaris, Perl 5.8 and use 5.005
in thread Solaris, Perl 5.8 and use 5.005

Hello dragonchild , and thanks for your answer .

Additionally, if it ain't broke, why you trying to fix it?

A new app will be developped on this server . We don't want to start developpement with 5.0 .

You will have to reinstall the entire module base,

Is it not possible to have a second perl binary, with a different she bang and a different default @INC ? If i manage to have two perl binary (you never know) then i also want to have two different module librairies. This way existing application does not have to migrate, new application is 5.8 .

In the case they insist to have only one binary, i understant we should check code and tree for modules and reinstall them .
This meeting is a first, no one's in charge of nothing, and i will certainly listen to what the conservatives have to say. But if it starts with "we need to re-install solaris", then i don't know .

Replies are listed 'Best First'.
Re^3: Solaris, Perl 5.8 and use 5.005
by gellyfish (Monsignor) on Mar 07, 2005 at 14:38 UTC

    Yes it is entirely possible to have a different Perl installation - you simply use a different PREFIX when you run Configure. IMO this is preferable to replacing an existing perl if you don't want to have to test and possibly fix a whole bunch of existing code. And it is definitely what you want to do if you have a preinstalled Perl that came with your OS (though I don't think Solaris 6 did.)

    /J\

Re^3: Solaris, Perl 5.8 and use 5.005
by dragonchild (Archbishop) on Mar 07, 2005 at 14:49 UTC
    I'm willing to go out on a limb and say unequivocally "You will never need to reinstall Solaris to install Perl 5.x.x". If they persist, ask them for their proof and bring it back to us. I feel very comfortable that we can provide answers that will satisfy.

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

Re^3: Solaris, Perl 5.8 and use 5.005
by Tanktalus (Canon) on Mar 07, 2005 at 16:44 UTC

    As gellyfish said, you can have multiple perls installed simultaneously:

    $ perl -v This is perl, v5.8.0 built for i386-linux-thread-multi (with 1 registered patch, see perl -V for more detail) Copyright 1987-2002, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge. $ perl5.8 -v This is perl, v5.8.6 built for i686-linux Copyright 1987-2004, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge. $ p58 # change environment $ perl5.8.3 -v This is perl, v5.8.3 built for i686-linux Copyright 1987-2003, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge.

    Note - I have 5.8.4 and 5.8.5 installed as well. Except for 5.8.0, they inherit each others' modules, as well. 5.8.0 is what comes with RHEL3, which I leave as-is so that RHEL3 apps continue to work, while the rest were compiled into a new directory, /share/perl5, and are what I use for my own code. Before I upgraded to RHEL3, I had RH7.3, which had Perl 5.6, and I also had compiled 5.8.0, and 5.8.1.

    As to "start developpement with 5.0" - that's not quite what you're doing. Between 5.005 and 5.6, Perl renamed its numbering scheme a bit. 5.005 in the old scheme is the same as 5.5 in the new scheme. Which is significantly newer than 5.0 ;-)

    Update: After re-reading the output, I realised that I hadn't updated my perl5.8 symlink to the latest perl version. Corrected the output above.