Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么Perlbrew会在Mac OS X Lion上推出bash?_Perl_Perlbrew - Fatal编程技术网

为什么Perlbrew会在Mac OS X Lion上推出bash?

为什么Perlbrew会在Mac OS X Lion上推出bash?,perl,perlbrew,Perl,Perlbrew,当我跑的时候 perlbrew开关perl-5.16.0 …我得到 启动一个子shell,将perl-5.16.0作为激活的perl。运行“退出”以完成它。 …然后会出现bash提示 这是预期的行为吗? 如果没有,我如何修复它?如果安装了不正确的perlbrew,就会发生这种情况。作为安装的一部分,系统会指示您向shell启动脚本中添加一个命令,但该命令似乎不存在 将以下内容添加到shell启动脚本: source .../perlbrew/etc/bashrc csh也有类似的脚本 sour

当我跑的时候

perlbrew开关perl-5.16.0

…我得到

启动一个子shell,将perl-5.16.0作为激活的perl。运行“退出”以完成它。

…然后会出现bash提示

这是预期的行为吗?
如果没有,我如何修复它?

如果安装了不正确的
perlbrew
,就会发生这种情况。作为安装的一部分,系统会指示您向shell启动脚本中添加一个命令,但该命令似乎不存在

将以下内容添加到shell启动脚本:

source .../perlbrew/etc/bashrc
csh
也有类似的脚本

source .../perlbrew/etc/cshrc

谢谢你,ikegami,效果很好。我将源代码行添加到
~/.bash\u profile
。具体来说,如果还有像我这样的Mac新手:
source/Users/Username/perl5/perlbrew/etc/bashrc