2013-04-14 56 views
3

我已经安装RVM没有任何问题。但是,当我尝试安装ruby 1.9.3它返回一个错误:RVM安装红宝石没有这样的文件或目录

ruby-1.9.3-p392 - #configure 
ruby-1.9.3-p392 - #download 
ruby-1.9.3-p392 - #validate archive 
ruby-1.9.3-p392 - #extract 
ruby-1.9.3-p392 - #validate binary 
ruby-1.9.3-p392 - #setup 
/usr/local/rvm/scripts/functions/utility: line 708: /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby: No such file or directory 
/usr/local/rvm/scripts/functions/utility: line 713: /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby: No such file or directory 
ln: target `/gems/' is not a directory: No such file or directory 
Saving wrappers to '/usr/local/rvm/wrappers/ruby-1.9.3-p392'........ 
ruby-1.9.3-p392 - #importing default gemsets, this may take time............................... 
Making gemset ruby-1.9.3-p392 pristine..... 
Making gemset [email protected] pristine..... 
[email protected]:~$ rvm use --default 1.9.3 
Using /usr/local/rvm/gems/ruby-1.9.3-p392 
[email protected]:~$ rvm use 1.9.3 
Using /usr/local/rvm/gems/ruby-1.9.3-p392 
[email protected]:~$ ruby -v 
-bash: /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby: No such file or directory 
[email protected]:~$ rvm use system 
Now using system ruby. 
[email protected]:~$ ruby -v 
ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-linux] 

我失去了与此有关。任何帮助表示赞赏!

使用Ubuntu 12.04 LTS 32位全新安装

+1

我认为问题是你apt-get安装红宝石。这会把所有的东西混淆,因为rvm不能很好地处理系统ruby。它喜欢在〜/ .rvm中加入红宝石。 – middleinitial

+0

您可能需要安装一些操作系统依赖关系? - 尝试运行'rvm notes'并查看它是否列出了需要安装的ubuntu软件包? – house9

回答

-1

/usr/local/rvm/scripts/functions/utility

您使用不推荐,除非你是支持共享主机的通用,多用户,安装安装RVM。对于大多数用途,您应该使用单用户安装,将RVM放入〜/ .rvm,以及所有与它们相关的Rubyies和gems。通过安装在/ usr/local中,修改或安装新的Ruby所需的每个操作都将涉及使用升级的权限。

安装RVM时,重要的是阅读,理解并遵循installation directions on the RVM site,而不是在其他网站上找到的方向,这些方向可能会或可能不会与您的确切情况有关,或者可能已变得陈旧。在RVM's installation page,作者明确说:

External tutorials

Note that that any outside tutorials are NOT supported whether they work or not. Tutorials are great, however we have spent massive amounts of man hours debugging the installation process. Please use the install process(es) from this site only, as this is the only supported installation types and methods.

RVM是一个强大的工具,极大地发展,因为它是首次推出,并RVM的作者是如何安装它的最佳来源。

几年前编写关于如何安装它的网页的人可能是准确的,但是几年后所有的赌注都没有关于他们的准确性。

相关问题