错误:找不到“which”命令,请先确保它可用,然后再继续安装

Bib*_*rma 4 deployment bash centos ruby-on-rails

我正在尝试在 Cent-OS 中部署 Rails 应用程序。当我运行curl -L get.rvm.io | bash -s stable设置 ruby​​ 环境时。我得到以下输出

[root@186-aven-vps marketeurepo]# curl -L get.rvm.io | bash -s stable
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   184  100   184    0     0    581      0 --:--:-- --:--:-- --:--:--   580
100 22721  100 22721    0     0  35092      0 --:--:-- --:--:-- --:--:-- 35092

ERROR: Could not find 'which' command, make sure it's available first before continuing installation.
Run Code Online (Sandbox Code Playgroud)

我在本地计算机上使用 Mac OS X,对此我是新手。如有任何建议,我们将不胜感激。谢谢。

小智 6

我通过运行以下命令解决了这个问题:

$ yum install which
Run Code Online (Sandbox Code Playgroud)