繁体   English   中英

在Ubuntu 12.04.1 LTS上安装ruby 2.0.0-p247

[英]Installing ruby 2.0.0-p247 on Ubuntu 12.04.1 LTS

我正在尝试在Ubuntu盒子上安装ruby 2.0,并且不断收到以下信息:

SERVER_USER@SERVER_NAME:/var/www/FOLDER_NAME$ rvm get stable && rvm install ruby-2.0.0
ERROR: Unknown ruby interpreter version: '2.0.0'
Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-2.0.0-p247, this may take     a while depending on your cpu(s)...

ruby-2.0.0-p247 - #fetching
ruby-2.0.0-p247 - #downloading ruby-2.0.0-p247, this may take a while depending on your connection...
curl: (3) <url> malformed
ERROR: There was an error, please check /usr/share/ruby-rvm/log/ruby-2.0.0-p247/*.log.     Next we'll try to fetch via http.
Trying http:// URL instead.
curl: (3) <url> malformed
ERROR: There was an error, please check /usr/share/ruby-rvm/log/ruby-2.0.0-p247/*.log
ERROR: There has been an error while trying to fetch the source.
Halting the installation.
ERROR: There has been an error fetching the ruby interpreter. Halting the installation.

它提到的日志也不存在。 另外,如果我在跑步时完全有帮助:

rvm requirements

我回来

ERROR: Unrecognized command line argument: 'requirements' ( see: 'rvm usage' )

我以前没见过

原来我的rvm被破坏了,因为我使用了apt-get install ruby​​-rvm而不是直接从rvm.io进行curl,所以重新安装rvm就可以了。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM