[英]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'。
EDIT TO ADD SOLUTION: 编辑以添加解决方案:
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 )
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: 现在到您的列表:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.