I'm running Ubuntu 12.04 LTS, and installed Ruby via RVM.
The problem is, when I type ruby -v
into the terminal, it says that my Ruby version is 1.8.7
, and using the shotgun gem for Sinatra also says that I'm running Ruby 1.8.7
.
But when I type rvm list
it shows that the only version of Ruby that I have installed is 2.0.0
and it is my current and default version.
I installed Ruby 2.0.0
via RVM and it is the only version I had installed on my machine.
Now when I tried to install Rails 4 but got an error saying that I need Ruby 1.9 or higher.
How do I know what version am I really on, and how do I set 2.0.0
as my only version?
Run this command:
rvm get stable --auto-dotfiles
and make sure to read all the output. RVM
will tell you if something is wrong, which in your case might be because GEM_HOME
is set to something different then PATH
.
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加