mje has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Trouble getting perlbrew working on Solaris machine
by rurban (Scribe) on Sep 18, 2012 at 19:49 UTC | |
by mje (Curate) on Sep 18, 2012 at 20:27 UTC | |
Re: Trouble getting perlbrew working on Solaris machine
by kcott (Archbishop) on Sep 19, 2012 at 07:07 UTC | |
by mje (Curate) on Sep 19, 2012 at 07:36 UTC | |
by gugod (Initiate) on Oct 03, 2012 at 18:34 UTC |