I've spent quite a bit of time trying to get perlbrew working on Solaris and now I'm stuck. The basic position I'm in now is:

$ perlbrew list * perl-5.16.1 $ perlbrew switch perl-5.16.1 $ which perl /export/home/sources/perl5/perlbrew/perls/perl-5.16.1/bin/perl $ echo $PERLBREW_ROOT /export/home/sources/perl5/perlbrew # NOTE the relative paths below # These differ from a linux box using perlbrew where # the paths are absolute. $ perl -MCPAN -le 'print' Can't locate CPAN.pm in @INC (@INC contains: ../lib/site_perl/5.16.1/s +un4-solaris ../lib/site_perl/5.16.1 ../lib/5.16.1/sun4-solaris ../lib +/5.16.1 .). BEGIN failed--compilation aborted. $ cd ~/perl5 $ find . -name CPAN.pm ./perlbrew/perls/perl-5.16.1/lib/5.16.1/CPAN.pm ./perlbrew/build/perl-5.16.1/cpan/CPAN/lib/CPAN.pm ./perlbrew/build/perl-5.16.1/lib/CPAN.pm

Some background.

I have sourced ~/perl5/perlbrew/etc/bashrc and I am running bash shell.

I just ran perlbrew install perl-5.16.1 to install 5.16.1 and it completed ok.

The box is used for other things so I did not want to change anything outside this account. As perlbrew uses HTTPS I needed a openssl installed for wget or curl. wget was a pain as the C source contains variable declarations in functions after code and after I'd fixed a number of these I got fed up and tried curl. Once I had a working curl perlbrew seems to need gtar which is gnu tar so I built that too. There were other issues with 3 argument open in perlbrew as the system Perl was 5.005_03 and perlbrew does a self-upgrade at the start.


In reply to Trouble getting perlbrew working on Solaris machine by mje

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.