http://www.perlmonks.org?node_id=994422


in reply to Re: Trouble getting perlbrew working on Solaris machine
in thread Trouble getting perlbrew working on Solaris machine

All that shell output was pasted from the same terminal session. I put the source command in the ~/bash_profile logged out then back in but just for luck I also sourced it manually. The find command was issued from ~/perl5 (as the output shows, the login dir of that user then perl5 where perlbrew installed itself). perl -V does not work:

$ perl -V Can't locate Config.pm in @INC (@INC contains: ../lib/site_perl/5.16.1 +/sun4-solaris ../lib/site_perl/5.16.1 ../lib/5.16.1/sun4-solaris ../l +ib/5.16.1 .). BEGIN failed--compilation aborted. $ cd ~/perl5 $ find . -name Config.pm -print ./perlbrew/perls/perl-5.16.1/lib/5.16.1/sun4-solaris/Config.pm ./perlbrew/build/perl-5.16.1/lib/Config.pm ./perlbrew/Config.pm # I filtered out some other Config.pms

Replies are listed 'Best First'.
Re^3: Trouble getting perlbrew working on Solaris machine
by gugod (Initiate) on Oct 03, 2012 at 18:34 UTC

    Hmm, you're probably run into issues with userelocatableinc . It was enabled by default for perl version >= 5.15.5 and worked fine on Mac/Linux, but apparently it has issues on other platforms.

    For now you may try to re-install perl-5.16.1 again by doing

    PERLBREW_CONFIGURE_FLAGS="-de" perlbrew install perl-5.16.1

    (After a `perlbrew uninstall perl-5.16.1` -- that essentially rm -rf the directory.)

    However I believe if you put full path shebang in your programs it should be good to run. It's just the perlbrew switching function that does not work well.