我在我的虚拟机上安装了perlbrew on Linux backtrack。我在回溯中安装了perl 5.10.1。但是,当我在终端中编写perlbrew命令时,它显示以下消息: perlbrew: command not found
我的系统出了什么问题?
发布于 2012-12-30 01:58:49
当您安装perlbrew时,系统会提示您添加如下内容
source ~/perl5/perlbrew/etc/bashrc添加到shell启动脚本(.bashrc)中。看起来您没有执行此操作,或者执行此操作后没有重新启动您的shell。
发布于 2020-09-15 23:33:43
新安装的Ubuntu18上的标准sudo apt install perlbrew似乎损坏了(如果我的内存没有故障,Ubuntu20也会损坏)。而且已经有一段时间了。即使我将source ~/perl5/perlbrew/etc/bashrc附加到~/.bash_profile和/或~/.bashrc并启动了一个新的bash,我也无法让它工作。perlbrew init也是如此。
最终对我起作用的是从https://perlbrew.pl/中提取的curl -L https://install.perlbrew.pl | bash,在这个which perlbrew显示正确的/home/me/perl5/perlbrew/bin/perlbrew而不是/usr/bin/perlbrew之后。现在我可以看到perlbrew available可用的perl5版本的完整列表。
https://stackoverflow.com/questions/14084323
复制相似问题