2012-06-25 66 views
3

當我運行...爲什麼Perlbrew在Mac OS X Lion上啓動bash?

perlbrew switch perl-5.16.0

...我得到...

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

...然後會出現一個bash提示符。

這是預期的行爲? 如果不是,我該如何解決?

回答

5

我拿到的行爲,如果我不嘗試使用perlbrew之前執行

source .../perlbrew/etc/bashrc 
在我的shell(bash)的

。你有沒有將它添加到你的shell啓動腳本?有一個類似的csh腳本:

source .../perlbrew/etc/cshrc 
+1

謝謝ikegami,完美的工作。我將源代碼行添加到'〜/ .bash_profile'中。具體來說,如果還有另一個像我這樣的Mac新手:'source/Users/Username/perl5/perlbrew/etc/bashrc' – cfoster