尝试在ubuntu上安装rvm和ruby时,未识别curl,但已安装
我正在ubuntu 12.04上安装rvm/ruby,但遇到了一个问题 rvm成功安装,但之后当我尝试执行尝试在ubuntu上安装rvm和ruby时,未识别curl,但已安装,ruby,ubuntu,curl,rvm,Ruby,Ubuntu,Curl,Rvm,我正在ubuntu 12.04上安装rvm/ruby,但遇到了一个问题 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
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
我能跑,没问题。有什么想法吗?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
此外,可能是离题的,对于prod服务器和替换默认的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
这是Ubuntu自带的默认curl安装,还是你用apt-get安装的?我相信这是我用apt-get安装的,因为使用apt-get-install-curl会发出一条消息说它已经安装好了。NVM的新问题需要Node版本的
,删除该版本的:他已经在稳定版本的rvm(1.24.7)上了但我认为你的rvm要求
建议一针见血。干得好。嗯,我试着完全删除rvm并按照本指南重新安装:但我发现在我完成\curl-L之后https://get.rvm.io |bash-s稳定
并重新启动终端。当我执行source~/.rvm/scripts/rvm
时,无法在该位置找到文件。。。我是作为root用户(在root的~中)这样做的,这不对吗?我相信第一次这样做时,我是从apt get install rvm
获取rvm的,您是否正在尝试在系统范围内安装rvm?最好使用普通用户(非root用户)进行RVM安装。如果您只是想用1.8.7系统Ruby替换生产服务器,我可以粘贴相应的步骤。今天早上我和一个朋友谈过,他告诉我你做过的事情,我作为一个普通用户尝试过,效果很好。如果你愿意的话,继续,把你的评论作为答案,我会把它标记为赢家。