Which Ruby version am I really running?

Ordep81

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?

mpapis

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]

編集
0

コメントを追加

0

関連記事

分類Dev

Which version of Unity am I running?

分類Dev

Which version of Unity am I running?

分類Dev

How can I tell which user limit I am running into?

分類Dev

What version of Vue am I running in Nuxt 2.14.0?

分類Dev

Am I really returning address or reference to a temporary

分類Dev

Confused - which shell do I really have?

分類Dev

pl/sql Cursor error ORA-06550 ORA-00905 Cursor will not compile because of a missing keyword. I don't really know which keyword I am missing

分類Dev

Is Kivy widgets creation really so slow or am I doing it wrong?

分類Dev

Rotating an object at which I am looking (ARFoundation)

分類Dev

When I really should call refresh function in module curses in Ruby

分類Dev

How to check the datatable version I am using

分類Dev

How can we programmatically detect which iOS version is device running on?

分類Dev

How do you check which version of Meteor you are running?

分類Dev

Which vim version can I use?

分類Dev

How can I upgrade the Ruby version on Passenger?

分類Dev

If I am using SIMILARITY_LOGLIKELIHOOD (LLR) are item ratings really ignored?

分類Dev

When I am running program with the help of appium on eclipse i am getting session not created error

分類Dev

Hive - How to know which execution engine I am currently using

分類Dev

Command line option to check which filesystem I am using?

分類Dev

ubuntu terminal - edit file of which I'am not the owner of

分類Dev

How to know which platform I am using in lubuntu, ubuntu or kubuntu

分類Dev

Can Windows run on my computer while I am running Ubuntu?

分類Dev

I am using Angular which has a modal dialog which then has checkboxes. I am unable to make the checkboxes remember their selection

分類Dev

Need some guidance with a small calculator I am working on Ruby

分類Dev

how can I check which version of vim I have installed?

分類Dev

What Version of Foundation Am I using? (NodeJS/Grunt)

分類Dev

`.fritz.box` and `.local` hostnames in the same network: Which do I really need?

分類Dev

Swift: Can I get information for an application which is not running?

分類Dev

How can I tell which web server Zimbra 8.0.6 is running?

Related 関連記事

  1. 1

    Which version of Unity am I running?

  2. 2

    Which version of Unity am I running?

  3. 3

    How can I tell which user limit I am running into?

  4. 4

    What version of Vue am I running in Nuxt 2.14.0?

  5. 5

    Am I really returning address or reference to a temporary

  6. 6

    Confused - which shell do I really have?

  7. 7

    pl/sql Cursor error ORA-06550 ORA-00905 Cursor will not compile because of a missing keyword. I don't really know which keyword I am missing

  8. 8

    Is Kivy widgets creation really so slow or am I doing it wrong?

  9. 9

    Rotating an object at which I am looking (ARFoundation)

  10. 10

    When I really should call refresh function in module curses in Ruby

  11. 11

    How to check the datatable version I am using

  12. 12

    How can we programmatically detect which iOS version is device running on?

  13. 13

    How do you check which version of Meteor you are running?

  14. 14

    Which vim version can I use?

  15. 15

    How can I upgrade the Ruby version on Passenger?

  16. 16

    If I am using SIMILARITY_LOGLIKELIHOOD (LLR) are item ratings really ignored?

  17. 17

    When I am running program with the help of appium on eclipse i am getting session not created error

  18. 18

    Hive - How to know which execution engine I am currently using

  19. 19

    Command line option to check which filesystem I am using?

  20. 20

    ubuntu terminal - edit file of which I'am not the owner of

  21. 21

    How to know which platform I am using in lubuntu, ubuntu or kubuntu

  22. 22

    Can Windows run on my computer while I am running Ubuntu?

  23. 23

    I am using Angular which has a modal dialog which then has checkboxes. I am unable to make the checkboxes remember their selection

  24. 24

    Need some guidance with a small calculator I am working on Ruby

  25. 25

    how can I check which version of vim I have installed?

  26. 26

    What Version of Foundation Am I using? (NodeJS/Grunt)

  27. 27

    `.fritz.box` and `.local` hostnames in the same network: Which do I really need?

  28. 28

    Swift: Can I get information for an application which is not running?

  29. 29

    How can I tell which web server Zimbra 8.0.6 is running?

ホットタグ

アーカイブ