我正试图在Mac (El Capitan)上安装Rex,遵循https://www.rexify.org/get.html的说明
我安装了XCode和MacPorts。
下面是我从安装命令中得到的响应
$ sudo port install libssh2 perl5
---> Computing dependencies for libssh2
---> Cleaning libssh2
---> Computing dependencies for perl5
---> Cleaning perl5
---> Scanning binaries for linking errors
---> No broken files found.
$ curl -L https://get.rexify.org | perl - --sudo -n Rex
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 294k 100 294k 0 0 99k 0 0:00:02 0:00:02 --:--:-- 99k
Rex is up to date. (1.3.3)尽管安装脚本告诉我它是最新的,但我不能运行以下命令:
$ rex
-bash: rex: command not found我在另一台Mac机器上试过了,没有问题。有人能帮我解决这个奇怪的情况吗?
更新:
在执行$ find / -name rex时,我在/opt/local/libexec/perl5.22/sitebin/中找到了一个实例。安装程序在创建bin文件夹时犯了一些错误吗?
发布于 2016-01-25 13:19:42
您需要找出perl模块在您的系统上的安装位置。
perl -e 'print join "\n", @INC;'您将在子目录"bin“的perl模块目录中找到rex。
试试这个:
for PERLINC in $(perl -e 'print join "\n", @INC;')
do ls -l $PERLINC/Rex-1.3.3/bin/rex; donehttps://stackoverflow.com/questions/34987068
复制相似问题