in reply to Re^2: MacOSX: perlbrew + cpanm, dependency check broken?
in thread MacOSX: perlbrew + cpanm, dependency check broken? [SOLVED]

Output of perl -v:
Uppercase -V. It should look like:
Summary of my perl5 (revision 5 version 20 subversion 1) configuration +: (tons of stuff)
This is the /Users/sdk/perl5 directory:
Well it seems your Getopt is installed right there (for some reasons), but I think that's not where Perl looks for them. Maybe you tried to install Perl manually before deciding to try perlbrew, and now there are some leftovers from manual configuration (in .bashrc)?

Replies are listed 'Best First'.
Re^4: MacOSX: perlbrew + cpanm, dependency check broken?
by sdkdev (Initiate) on Dec 05, 2014 at 09:46 UTC

    The perl5 directory got created from perlbrew. It was not there before. The system of course has a perl installed. OSX comes with perl - but I didn't do anything with it. I have another machine where I tried the same and it shows the same result. So either I'm systematically doing something wrong, or something with perlbrew is not right.

    I'm using zsh, but I source the bashrc generated from perlbrew. I can see in the changelog that there was a fix in the last perlbrew version in regards of perlbrew. So I also tried it with changing my shell to bash first. Same result.

    However I changed the shell by just launching bash from my zsh - I think the environment is taken over in this case.

    I've now reconfigured my system to use /bin/bash via chsh. Then I've opened a new terminal, sourced the perlbrew bashrc.... and guess what:

    IT WORKS!!!

    So the issue was either shell or environment related. I found out that new environment has only PERLBREW_* variables set. No other perl variables. I'll check on my other machine if it works in zsh if I correct this. I'll let you know.

    Thank you very much for your effort!
    - sdk