Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我跑...
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 提示。
这是预期的行为吗?如果没有,我该如何解决?
当您安装了不正确的perlbrew. 作为安装的一部分,系统会指示您向 shell 启动脚本添加一个命令,但似乎缺少该命令。
perlbrew
将以下内容添加到您的 shell 启动脚本中:
source .../perlbrew/etc/bashrc
有一个类似的脚本csh。
csh
source .../perlbrew/etc/cshrc