我正在尝试按照https://www.rexify.org/get.html上的说明在 Mac OS X (El Capitan) 上安装 Rex
我已经安装了 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 OS X 机器上试过,没有问题。有人可以帮我解决这个奇怪的情况吗?
更新:
做一个$ find / -name rex
,我在/opt/local/libexec/perl5.22/sitebin/
. 安装程序在创建 bin 文件夹时是否犯了一些错误?