<?xml version="1.0" encoding="windows-1252"?>
<node id="1004428" title="Re: Perlbrew issues. Suggest a way out." created="2012-11-18 10:25:28" updated="2012-11-18 10:25:28">
<type id="11">
note</type>
<author id="733061">
flexvault</author>
<data>
<field name="doctext">
&lt;p&gt;&lt;a href="http://www.perlmonks.org/?node_id=941553"&gt;perl514&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;It is very easy to install multiple copies of Perl on *nix boxes. I usually have 3 to 5 versions depending on how old the computer is. Download from CPAN the version you want. I do the following system commands after verifying the checksum:
&lt;code&gt;
 gzip -d  perl-5.14.2.tar.gz
 tar -xf  perl-5.14.2.tar               # This creates a new directory perl-5.14.2
 cd perl-5.14.2
 ./Configure -des -Dprefix=/usr/opt/perl_5_14_2   # directory should be unique and already exist
 make
 make test
 make install                           # This will install to /usr/opt/perl_5_14_2
 ln -s /usr/opt/perl_5_14_2/bin/perl /usr/local/bin/myperl
&lt;/code&gt;
&lt;p&gt;This should generate a new and totally different Perl from the system Perl.
To test that everything works, just type 
&lt;code&gt;
 myperl -V     # you can call it anything, but I recommend having perl in the name
&lt;/code&gt;
&lt;/p&gt;&lt;p&gt;Some things to keep in mind.
&lt;ul&gt;
&lt;li&gt;If you need CPAN modules, they have to be installed with 'myperl'. The libraries are totally separate from the system libraries.
&lt;li&gt;&lt;b&gt;Do not change the default Perl&lt;/b&gt;. I usually do a symbolic link to the system perl in '/usr/local/bin/perl -&gt; [system perl]. This will give an error message if I try to re-link the default perl.
&lt;li&gt;If you want the additional features for your custom Perl, read about all the options in 'Configure'. Also the Configure options are shown in all versions of perl  by doing 'perl -V;grep "config_args"' which will show you how the system Perl was built.
&lt;li&gt;Hint: If you need or use other Perl commands, then I usually do a symbolic link to them. But remember, if you have multiple Perls, you will have to re-link the commands to get the correct version.
&lt;li&gt;Hint2: If you have multiple cores, do the 'make' first, and then do the 'make test' as I showed here, otherwise you may test something before it's compiled.
&lt;li&gt;Hint3: From the problems you're having, maybe re-install the operating system before doing these steps. Or try this first and if you still have problems, then re-install the system. All of my laptops have *nix and windows both with out a problem. It's easier than trying to have multiple &lt;b&gt;newer&lt;/b&gt; *nixes on 1 box :-)
&lt;/ul&gt;
&lt;p&gt;You'll never again be limited by the Perl that ships with the *nix!&lt;/p&gt;&lt;p&gt;
I did this from memory, so if you find something that works differently, I'll check it, and update the documentation or at least mark it as system dependent.

&lt;/p&gt;
&lt;p&gt;Good Luck!&lt;/p&gt;
&lt;div class="pmsig"&gt;&lt;div class="pmsig-733061"&gt;
&lt;p&gt;&lt;b&gt;"Well done is better than well said." - Benjamin Franklin&lt;/b&gt;&lt;/p&gt;

&lt;/div&gt;&lt;/div&gt;</field>
<field name="root_node">
1004406</field>
<field name="parent_node">
1004406</field>
</data>
</node>
