English 中文(简体)
RVM don tchange Rubies
原标题:RVM doesn t switch Rubies
  • 时间:2010-07-18 19:38:51
  •  标签:
  • ruby
  • rvm

伊米·鲁比·1.9.1p243

我遵循以下指示:http://rvm.beginrescueend.com/rvm/install/,以及正确安装的所有材料。 我得以汇编和安装了Rub.1.8.7、1.9.1和1.9.2。

然而,如果我试图实际转向安装的快车之一,则使用1.8.7,例如没有任何东西。 我的系统仍在使用Ruby I, 安装在/usr/ local/bin/ruby。

我获得的产出的一个例子是:

$ rvm use 1.8.7
$ ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]
$ which ruby
/usr/local/bin/ruby
$ rvm use 1.9.2
$ ruby -v
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]
$ which ruby
/usr/local/bin/ruby

我不知道为什么会发生这种情况,而且我似乎也找不到任何有关这个问题的在线信息。 希望得到任何帮助。

最佳回答

典型的快速支持最容易地通过国际排雷中心(关于自由选择的编号)——在这种特定情况下,“类型”——n1”显示什么? 它应当表明“是功能”。 否则,这意味着电线的运行是正确的,因此转站工作。 通常,这意味着你要么回到了你/.bashrc,要么错过了在源头上添加线。

问题回答

同样的问题也是如此。

不要将以下文字贴在~/.bash_profile,而是将其贴在~/.bashrc上:

[-s “$HOME/.rvm/scripts/rvm”] && “$HOME/.rvm/scripts/rvm” # 将该编号为RVERV。

然后重新启用终点站。

Your install it as root account. Try this in shell:

[[ -s "/usr/local/rvm/scripts/rvm" ]] && . "/usr/local/rvm/scripts/rvm"

排在车道开关之前。 我在简介档案中添加了这个字句,现在所有字眼都在.。

Can be a problem of Terminal and you should try to close your Terminal s window and to open new one. :) Try again to see if it has changed...

在我尝试之前,我一直在努力确定违约的 rub锁,没有结果:

sudo bash -l -c  rvm alias create default ruby-1.9.3-p392 

"sudo" is for writing into /usr/local/rvm/config/alias (in my example it would contain "default=ruby-1.9.3-p392")
"bash -l" is to make sure it runs all the scripts (/etc/profile, /etc/bash.bashrc, etc..) of login shell





相关问题
Ruby parser in Java

The project I m doing is written in Java and parsers source code files. (Java src up to now). Now I d like to enable parsing Ruby code as well. Therefore I am looking for a parser in Java that parses ...

rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

multiple ruby extension modules under one directory

Can sources for discrete ruby extension modules live in the same directory, controlled by the same extconf.rb script? Background: I ve a project with two extension modules, foo.so and bar.so which ...

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...