Why does Perlbrew launch bash on Mac OS X Lion?
Asked Answered
M

1

5

When I run...

perlbrew switch perl-5.16.0

...I get...

A sub-shell is launched with perl-5.16.0 as the activated perl. Run 'exit' to finish it.

...then a bash prompt appears.

Is this expected behavior? If not, how can I fix it?

Miniature answered 25/6, 2012 at 17:14 Comment(0)
T
9

That happens when you have an improperly installed perlbrew. As part of the installation, you are instructed to add a command to your shell startup script, but that appears to be missing.

Add the following to your shell startup script:

source .../perlbrew/etc/bashrc

There's a similar script for csh.

source .../perlbrew/etc/cshrc
Textbook answered 25/6, 2012 at 17:28 Comment(1)
Thanks, ikegami, that worked perfectly. I added the source line to ~/.bash_profile. Specifically, in case there's another Mac newbie like me: source /Users/Username/perl5/perlbrew/etc/bashrcMiniature

© 2022 - 2024 — McMap. All rights reserved.