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

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

  • Comment on Re^4: MacOSX: perlbrew + cpanm, dependency check broken?