in reply to Re^2: duplicate perl environments
in thread duplicate perl environments

With Perlbrew, go ahead and do fresh installs of perl. That way Perlbrew can easily switch between them.
$ perlbrew available perl-5.17.1 perl-5.16.0 perl-5.14.2 perl-5.12.4 perl-5.10.1 perl-5.8.9 perl-5.6.2 perl5.005_04 perl5.004_05 perl5.003_07 $ perlbrew install perl-5.16.0

Also, is this a machine that many people use or is it your personal machine? By default, perlbrew installs itself and perl in your home directory, so you don't need to ever use sudo when adding new modules; however, for our shared workhorse, I follow the docs at http://perlbrew.pl to install into /perlbrew so that everyone is able to use the modules I install.

Replies are listed 'Best First'.
Re^4: duplicate perl environments
by Bejjan (Novice) on Jul 13, 2012 at 17:50 UTC
    I would rather get rid of 5.10.1 completly and use 5.12.4 as system default, as this is also used by the webserver processes.
    root@boiao:~# perlbrew switch
    No version in use; defaulting to system
    
    Since the dist-upgrade changed perl configuration, surely there must be some way to force the system defaults ?
    Any advice to this is greatly appreciated.
    Br, Jimmy
      Is 5.10.1 what came with your OS? If so, I strongly recommend against messing it up.
        The thing is, I did not install the new version of perl, dist-upgrade/do-release-upgrade did that for me.
        If i try to remove perl 5.12.4 the package manager will wipe out several other packages and most likely kill the server in the process.
        Last resort solution would be to completly reinstall the system, but there are a dosen websites depending on it along with a few terabytes of data.
        Perlbrew didn't help, attempting to remove perl 5.12.4 will break the system, trying to fiddle with perl 5.10.1 will also likely break the system.
        I'll have to reconsider these facts for now.

        Thanks everyone for your input.
        Best regards and have a nice weekend!
        Jimmy