"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:

export PERLBREW_BASHRC_VERSION=0.58 __perlbrew_reinit() { if [[ ! -d "$PERLBREW_HOME" ]]; then mkdir -p "$PERLBREW_HOME" fi echo '# DO NOT EDIT THIS FILE' > "$PERLBREW_HOME/init" command perlbrew env $1 | grep PERLBREW_ >> "$PERLBREW_HOME/init" . "$PERLBREW_HOME/init" __perlbrew_set_path } __perlbrew_set_path () { MANPATH_WITHOUT_PERLBREW=`perl -e 'print join ":", grep { index($_ +, $ENV{PERLBREW_HOME}) < 0 } grep { index($_, $ENV{PERLBREW_ROOT}) < +0 } split/:/,qx(manpath 2> /dev/null);'` if [ -n "$PERLBREW_MANPATH" ]; then export MANPATH="$PERLBREW_MANPATH:$MANPATH_WITHOUT_PERLBREW" else export MANPATH="$MANPATH_WITHOUT_PERLBREW" fi unset MANPATH_WITHOUT_PERLBREW PATH_WITHOUT_PERLBREW=`$perlbrew_command display-pristine-path` if [ -n "$PERLBREW_PATH" ]; then export PATH=${PERLBREW_PATH}:${PATH_WITHOUT_PERLBREW} else export PATH=${PERLBREW_ROOT}/bin:${PATH_WITHOUT_PERLBREW} fi unset PATH_WITHOUT_PERLBREW hash -r } __perlbrew_activate() { [[ -n $(alias perl 2>/dev/null) ]] && unalias perl 2>/dev/null if [[ -n "$PERLBREW_PERL" ]]; then if [[ -z "$PERLBREW_LIB" ]]; then eval "$($perlbrew_command env $PERLBREW_PERL)" else eval "$(${perlbrew_command} env $PERLBREW_PERL@$PERLBREW_L +IB)" fi fi __perlbrew_set_path } __perlbrew_deactivate() { eval "$($perlbrew_command env)" unset PERLBREW_PERL unset PERLBREW_LIB __perlbrew_set_path } perlbrew () { local exit_status local short_option export SHELL if [[ $1 == -* ]]; then short_option=$1 shift else short_option="" fi case $1 in (use) if [[ -z "$2" ]] ; then if [[ -z "$PERLBREW_PERL" ]] ; then echo "Currently using system perl" else echo "Currently using $PERLBREW_PERL" fi else code="$(command perlbrew env $2);" if [ -z "$code" ]; then exit_status=1 else eval $code __perlbrew_set_path fi fi ;; (switch) if [[ -z "$2" ]] ; then command perlbrew switch else perlbrew use $2 && __perlbrew_reinit $2 fi ;; (off) __perlbrew_deactivate echo "perlbrew is turned off." ;; (switch-off) __perlbrew_deactivate __perlbrew_reinit echo "perlbrew is switched off." ;; (*) command perlbrew $short_option "$@" exit_status=$? ;; esac hash -r return ${exit_status:-0} } [[ -z "$PERLBREW_ROOT" ]] && export PERLBREW_ROOT="$HOME/perl5/perlbre +w" [[ -z "$PERLBREW_HOME" ]] && export PERLBREW_HOME="$HOME/.perlbrew" if [[ ! -n "$PERLBREW_SKIP_INIT" ]]; then if [[ -f "$PERLBREW_HOME/init" ]]; then . "$PERLBREW_HOME/init" fi fi perlbrew_bin_path="${PERLBREW_ROOT}/bin" if [[ -f $perlbrew_bin_path/perlbrew ]]; then perlbrew_command="$perlbrew_bin_path/perlbrew" else perlbrew_command="command perlbrew" fi unset perlbrew_bin_path __perlbrew_activate

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


In reply to Re^4: Using Perlbrew macOS impossible to install distributions by karlgoethebier
in thread Using Perlbrew macOS impossible to install distributions by Anonymous Monk

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.