in reply to Re: Using Perlbrew macOS impossible to install distributions
in thread Using Perlbrew macOS impossible to install distributions

Mmh, if the Op's ENV looks like this...

karls-mac-mini:~ karl$ env | grep PERLBREW PERLBREW_VERSION=0.58 PERLBREW_PERL=perl-5.18.0 PERLBREW_BASHRC_VERSION=0.58 PERLBREW_ROOT=/Users/karl/perl5/perlbrew PERLBREW_HOME=/Users/karl/.perlbrew PERLBREW_MANPATH=/Users/karl/perl5/perlbrew/perls/perl-5.18.0/man PERLBREW_PATH=/Users/karl/perl5/perlbrew/bin:/Users/karl/perl5/perlbre +w/perls/

...everything should be OK with perlbrew, right? Very strange...

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Replies are listed 'Best First'.
Re^3: Using Perlbrew macOS impossible to install distributions
by kcott (Archbishop) on Nov 27, 2017 at 20:40 UTC

    G'day Karl,

    I read what you've written several times but the point you're trying to make eludes me. I was particularly stumped by your final words: "Very strange...".

    The OP shouldn't need to manually source '~/perl5/perlbrew/etc/bashrc' in order to use Perlbrew. Doing this will set up environment variables such as you've shown, but only in the current shell. It's a tedious task that's easy to forget and therefore error-prone: hence my suggestion to set up something similar to my '.bash_profile' and '.bashrc'.

    I set all this up for myself years ago and haven't needed to change anything since. While I don't remember specifics, I do recall all instructions came from Perlbrew documentation: I didn't need to seek out secret incantations in dark corners of the Internet.

    For what it's worth, except for some obvious and expected differences (e.g. s/karl/ken/), my environment looks very similar to yours.

    — Ken

      "I set all this up for myself years ago and haven't needed to change anything since"

      Like me. It was a "Fire And Forget" task.

      My .bashrc is empty.

      My .bash_profile:

      karls-mac-mini:~ karl$ cat .bash_profile source ~/perl5/perlbrew/etc/bashrc export JAVA_HOME=$(/usr/libexec/java_home)

      My perlbrew bashrc:

      I did nothing related to perlbrew "by hand".

      Best regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

      perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help