Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails Server Error: Ruby version is 1.8.7, but your Gemfile specified 1.9.3

I entered a existing ruby application, and type:

$ rails s

wanted to start rails server here. but it said:

Your Ruby version is 1.8.7, but your Gemfile specified 1.9.3

Actually, I had a 1.8.7, but I deleted it. And if I do:

$ ruby -v

it said: ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin11.4.2]

So I don't know how can I fix it. Can you give me a help?

like image 753
Yuqing Huang Avatar asked Oct 21 '12 05:10

Yuqing Huang


1 Answers

If you are using rvm, run this:

$ rvm use 1.9.3
like image 65
Naoise Golden Avatar answered Oct 04 '22 19:10

Naoise Golden