Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
807 views
in Technique[技术] by (71.8m points)

perl - Why does Perlbrew launch bash on Mac OS X Lion?

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...