【问题标题】:ERROR: Could not find 'which' command, make sure it's available first before continuing installation错误:找不到“哪个”命令,在继续安装之前先确保它可用
【发布时间】:2017-01-12 07:03:48
【问题描述】:

我正在尝试在 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.

我在本地机器上使用 Mac OS X,我是新手。任何建议都将不胜感激。谢谢。

【问题讨论】:

  • which 应该在 /usr/bin/ 中,因为它在我的 Mac 10.10.5 上。不知何故,这个目录不在你的$PATH 中。您应该编辑您的 ~/.bash_profile 并将适当的目录添加到 PATH

标签: ruby-on-rails bash deployment centos


【解决方案1】:

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

$ yum install which

【讨论】:

    猜你喜欢
    • 2023-03-19
    • 2022-08-03
    • 2022-11-01
    • 1970-01-01
    • 2022-06-11
    • 2021-12-31
    • 2016-12-09
    • 2018-01-03
    • 2013-11-04
    相关资源
    最近更新 更多