简体   繁体   English

Ruby版本1.9.3p392导致gem'monbon'错误

[英]Ruby Version 1.9.3p392 Causing Errors with gem 'monbon'

The Ruby Version set on my windows machine is: ruby 1.9.3p392 (2013-02-22) [i386-mingw32] 我在Windows机器上设置的Ruby版本是:ruby 1.9.3p392(2013-02-22)[i386-mingw32]

I have tried running the ruby installer for Ruby 2.0.0 but cannot seem to get it to replace the 1.9.3p392. 我曾尝试为Ruby 2.0.0运行ruby安装程序,但似乎无法使其替换1.9.3p392。

Now I am working in a tutorial that requires the gem 'monbon' - but when I run bundle on a new app, I get the message: 现在,我正在一个需要gem'monbon'的教程中工作-但是,当我在新应用上运行bundle时,会收到以下消息:

Could not find gem 'monbon' (= 0.0.6) x86-mingw32' in the gems available on this machine. 在这台机器上可用的宝石中找不到宝石'monbon'(= 0.0.6)x86-mingw32'。

  1. Is the patch on the Ruby causing this error and why? Ruby上的补丁会导致此错误,为什么?
  2. What are some steps I can take to just run Ruby 1.9.3 or 2.0.0? 仅运行Ruby 1.9.3或2.0.0可以采取哪些步骤?
    1. Any further code or screen shots I can take to help diagnose issue? 我可以采取其他任何代码或屏幕快照来帮助诊断问题吗?

EDIT TO ADD SOLUTION: 编辑以添加解决方案:

  1. I was able to install Pik ( https://github.com/vertiginous/pik ) by following this tutorial ( http://puneetpandey.com/tag/how-to-install-and-configure-pik-on-windows/ ) and solving an error by this stack overflow questions ( installing pik in system path in windows ) 通过遵循本教程( http://puneetpandey.com/tag/how-to-install-and-configure-pik-on-windows/ ),我能够安装Pik( https://github.com/vertiginous/pik ) )并通过此堆栈溢出问题解决错误( 在Windows的系统路径中安装pik

  2. Then I installed Ruby 2.0.0 and also the exact Ruby version and patch from the tutorial using Pik. 然后,我使用Pik安装了Ruby 2.0.0以及本教程中的确切Ruby版本和补丁。


Firstly, this 'strange patch' is perfectly normal and expected. 首先,这个“奇怪的补丁”是完全正常且可以预期的。 It tells you the patchlevel that has been applied to your ruby 1.9.3 installation. 它告诉您已应用于ruby 1.9.3安装的补丁程序级别。 And patches are good - they generally are used to fix security and stability issues. 补丁程序很好 -它们通常用于修复安全性和稳定性问题。

Secondly, the [i386-mingw32] is there to let you know that you are using the Windows flavor (or 'i386-mingw32' flavor to be more correct) of ruby. 其次,[i386-mingw32]可以让您知道您使用的是Windows风格的红宝石(或更正确地说是'i386-mingw32'风格)。 This is important, because not all gems necessarily support all OS's without some tweaking. 这很重要,因为并非所有的gem都必须在不作任何调整的情况下支持所有操作系统。 Many of them need to be compiled, and the instructions for doing so can differ from OS to OS. 他们中的许多人都需要编译,并且这样做的说明因操作系统而异。 Now on to your list: 现在到您的列表:

  1. The strange patch is not causing the error. 奇怪的补丁程序不会导致错误。
  2. The steps you can take to run the correct Ruby are - install pik. 运行正确的Ruby可以采取的步骤是-安装pik。 It lets you choose the right version of ruby whenever you want. 它使您可以随时选择正确的红宝石版本。 And it lets you set the default version when you don't want to think about it. 而且,它可以让您在不想考虑时设置默认版本。
  3. Nothing to diagnose, everything is running as expected. 无需诊断,一切都按预期运行。 The gem can't be found for the i386-mingw32 ruby flavor. 找不到i386-mingw32红宝石风味的宝石。 Check with your 'monbon' gem author to see if and how this can be resolved. 请与您的“ monbon”宝石作者联系,以查看是否可以解决该问题。

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

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