Dipendra Singh
Dipendra Singh

Reputation: 542

Unable to update rails version even by using gem update rails command

I am trying to build ROR application for which I wrote rails fist_app command in terminal. I didn't find gemfile in folder fist_app. When goggled, found Stackoverflow answer for this problem which suggest to update rails.

But when I update rails version it shows nothing to update. Here is a screen-shot. enter image description here

Please suggest some solution for this problem. Thanks

Upvotes: 1

Views: 1285

Answers (1)

Lukas Stejskal
Lukas Stejskal

Reputation: 2562

You have rails installed as Ubuntu package, not as a gem, so you can't update it. Uninstall the rails package (sudo apt-get remove rails) and then install it again as a gem: gem install rails.

UPDATE: I'm not 100% sure it will work though, because gem is also installed as Ubuntu package. It's better to set up everything (ruby, gem and rails) through RVM. Here's a tutorial: http://ryanbigg.com/2010/12/ubuntu-ruby-rvm-rails-and-you/

Upvotes: 1

Related Questions