简体   繁体   中英

Ubuntu VMWARE Ruby Error

I am trying to run bundler. My ruby version is 2.3.0 but I keep getting this error.

Your Ruby version is 2.1.2, but your Gemfile specified 2.3.0

Any help is appreciated.

Edit- Ubuntu version is 14.04. ruby -v returns 2.3.0. I am writing in notepad and compiling in terminal.

There are more options to this problem as you did not specifi it to a larger extent. But the options are:

  1. you could have more versions of ruby installed which leads to collisions
  2. if you are using IDE, it could be linked to a wrong version of ruby
  3. if you are not using IDE but terminal, the default ruby might be set to a wrong version

If its not one of these, than you should give us more information on your setup.

  1. Version of Ubuntu
  2. outputs of rvm list or ruby -v from terminal
  3. What are you using to develop? IDE, vim, Sublime, ... etc.
  4. How do you compile it
  5. May be something more, but I cant think of anything now...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM