简体   繁体   English

Ubuntu VMWARE Ruby错误

[英]Ubuntu VMWARE Ruby Error

I am trying to run bundler. 我正在尝试运行捆绑器。 My ruby version is 2.3.0 but I keep getting this error. 我的ruby版本是2.3.0,但是我一直收到此错误。

Your Ruby version is 2.1.2, but your Gemfile specified 2.3.0 您的Ruby版本是2.1.2,但是您的Gemfile指定了2.3.0

Any help is appreciated. 任何帮助表示赞赏。

Edit- Ubuntu version is 14.04. 编辑-Ubuntu版本为14.04。 ruby -v returns 2.3.0. ruby -v返回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 您可能安装了更多版本的ruby,这会导致碰撞
  2. if you are using IDE, it could be linked to a wrong version of ruby 如果您使用的是IDE,则可能链接到错误版本的ruby
  3. if you are not using IDE but terminal, the default ruby might be set to a wrong version 如果您使用的不是IDE,而是终端,则默认的ruby可能设置为错误的版本

If its not one of these, than you should give us more information on your setup. 如果它不是其中之一,那么您应该给我们更多有关您的设置的信息。

  1. Version of Ubuntu Ubuntu版本
  2. outputs of rvm list or ruby -v from terminal 终端的rvm listruby -v输出
  3. What are you using to develop? 您正在使用什么进行开发? IDE, vim, Sublime, ... etc. IDE,vim,Sublime等...
  4. How do you compile it 你怎么编译
  5. May be something more, but I cant think of anything now... 可能还有更多,但我现在什么都想不起来...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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