gpt4 book ai didi

ruby - 尝试在 ubuntu 上安装 rvm 和 ruby​​ 时,无法识别 curl 但已安装

转载 作者:数据小太阳 更新时间:2023-10-29 07:30:16 25 4
gpt4 key购买 nike

我正在将 rvm/ruby 安装到 ubuntu 12.04 上,但我遇到了问题。

rvm 成功安装,但之后当我尝试执行 rvm install ruby​​ 时,我得到以下输出:

RVM requires 'curl'. Install 'curl' first and try again.
Warning, new version of rvm available '', you are using older version '1.24.7'.
You can disable this warning with: echo rvm_autoupdate_flag=0 >> ~/.rvmrc
You can enable auto-update with: echo rvm_autoupdate_flag=2 >> ~/.rvmrc
/usr/local/rvm/scripts/functions/utility_system: line 21: awk: command not found
/usr/local/rvm/scripts/functions/utility_system: line 22: dpkg: command not found
/usr/local/rvm/scripts/functions/utility_system: line 191: tr: command not found
/usr/local/rvm/scripts/functions/utility: line 210: head: command not found
/usr/local/rvm/scripts/functions/utility: line 204: sort: command not found
/usr/local/rvm/scripts/functions/utility_system: line 21: awk: command not found
/usr/local/rvm/scripts/functions/utility_system: line 22: dpkg: command not found
/usr/local/rvm/scripts/functions/utility_system: line 191: tr: command not found
/usr/local/rvm/scripts/functions/support: line 248: find: command not found
/usr/local/rvm/scripts/functions/utility_system: line 21: awk: command not found
/usr/local/rvm/scripts/functions/utility_system: line 22: dpkg: command not found
/usr/local/rvm/scripts/functions/utility_system: line 191: tr: command not found
/usr/local/rvm/scripts/functions/utility: line 210: head: command not found
/usr/local/rvm/scripts/functions/utility: line 204: sort: command not found
Searching for binary rubies, this might take some time.
No binary rubies available for: ///ruby-2.0.0-p353.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for .
Requirements support for ruby-2.0.0-p353 is not implemented yet,
report a bug here => https://github.com/wayneeseguin/rvm/issues
Requirements installation failed with status: 1.

问题是,curl 已安装:

# curl
curl: try 'curl --help' or 'curl --manual' for more information

我可以毫无问题地运行 curl。有什么想法吗?

最佳答案

更新 2014-09

如果您尝试在系统范围内安装 RVM,首选是使用普通用户(而非 root)来安装 RVM。

$ curl -L get.rvm.io | bash -s stable
$ source ~/.rvm/scripts/rvm

$ rvm requirements
$ rvm install 2.1.3
$ rvm use --default 2.1.3

此外,也许离题了,对于生产服务器和替换默认的 1.8.7(系统范围),您可以在没有 RVM 的情况下做到这一点:

$ git clone https://github.com/sstephenson/ruby-build.git
$ cd ruby-build
$ ./install.sh

$ ruby-build 2.1.3 /usr/local

关于ruby - 尝试在 ubuntu 上安装 rvm 和 ruby​​ 时,无法识别 curl 但已安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20390030/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com