0

我正在尝试按照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 文件夹时是否犯了一些错误?

4

1 回答 1

2

您需要找出 perl 模块安装在系统上的位置,使用

perl -e 'print join "\n", @INC;'

您将rex在子目录“bin”中的 perl 模块目录之一中找到。

尝试这个:

for PERLINC in $(perl -e 'print join "\n", @INC;') 
do ls -l $PERLINC/Rex-1.3.3/bin/rex; done
于 2016-01-25T13:19:42.160 回答