title: Trouble Installing New Version of Perl Using Perlbrew
body: <p>So based on instructions I was given on stackoverflow, I was attempting to install a new version of Perl on my 64 bit Solaris virtual machine using perlbrew, in order to ultimately install 'cpanm' and install the CGI and DBI modules, as well as the DBD::Oracle driver. These are the steps I was following:</p>
  
  <p>1) Open up a terminal window and login as the <strong>root</strong> user. Then install the following packages...</p>
  
  <ul>
  
  <li><code>pkg install system/header</code>
  <li><code>pkg install gcc-45</code>
  <li><code>pkg install developer/build/gnu-make</code>
  <li><code>pkg install archiver/gnu-tar</code>
  </ul>
  
  <p>2) Install perlbrew...</p>
  
  <ul><li><code>curl -kL http://install.perlbrew.pl | bash</code></ul>
  
  <p>3) Next, open up ~/.bash_profile or ~/.profile and append the following line of code..</p>
  
  <ul>
  <li><code>vi ~/.bash_profile</code> <b>OR</b> vi <code>~/.profile</code>
  <li>append <code>source ~/perl5/perlbrew/etc/bashrc</code> to the end of the file
  <li>log out of root
  <li>log back into root
  <li>Additionally, you may have to manually source the file by entering: <code>source ~/perl5/perlbrew/etc/bashrc</code> if the next few steps do not seem to work.
  </ul>
  
  <p>4) Begin to install the new Perl.</p>
  
  <ul>
  <li><code>echo $PERLBREW_ROOT</code> --> this should equal /home/oracle/perl5/perlbrew
  <li><code>perlbrew -v install perl-5.16.0 -Dcc=gcc</code>
  </ul>
  
  <p>&nbsp;&nbsp;&nbsp;&nbsp;<b>Output From Installation:</b></p>
  
  <pre><code>Test Summary Report
      -------------------
      ../cpan/CGI/t/tmpdir.t                                          (Wstat: 0 Tests: 9 Failed: 0)
        TODO passed:   3, 6, 8
      ../cpan/Socket/t/getnameinfo.t                                  (Wstat: 256 Tests: 14 Failed: 1)
        Failed test:  10
        Non-zero exit status: 1
      Files=2334, Tests=522101, 1212 wallclock secs (90.50 usr 58.34 sys + 533.70 cusr 288.26 csys = 970.80 CPU)
      Result: FAIL
      *** Error code 1
      make: Fatal error: Command failed for target `test_harness'
      Installed /home/oracle/perl5/perlbrew/build/perl-5.16.0 as perl-5.16.0 successfully. Run the following command to switch to it.
  
        perlbrew switch perl-5.16.0
  </code></pre>
  
  <ul>
  <li><code>perlbrew switch perl-5.16.0</code>
  </ul>
  
  <p>However, when I try to switch to the new perl, it says: <code>perl-5.16.0 is not installed</code>.</p>
  
  <p>So I did a <code>ls $PERLBREW_ROOT</code> and found it contains a <b>bin, build, build.log, Config.pm, dists, etc</b>, and <b>perls</b> directory. And thus I figure the new Perl should be installed in the <b>perls</b> directory, but doing an <code>ls $PERLBREW_ROOT/perls</code> shows that there is nothing in the <b>perls</b> directory. Does anyone have any idea what may be going wrong?</p>