我来自OSX,其中90%的时间Ruby运行得非常完美。我有一段时间没有触及它,但现在正好在Windows 7机器上工作。我试图运行一个简单的Ruby on Rails项目,但我似乎无法通过我的任何数据库设置。
我想在运行mysql但是当我试图(通过bundle install
或gem install mysql2
)安装mysql2宝石,我得到这些错误:Ruby mysql2 gem,无法在Windows 7上构建
Installing mysql2 (0.2.9) with native extensions C:/Ruby192/lib/ruby/site_ruby/1 .9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
C:/Ruby192/bin/ruby.exe extconf.rb checking for
rb_thread_blocking_region()... * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
我几乎一个完整的福利局当涉及到这样的如果有人有任何建议,请帮忙!
Devkit已经安装了,它已经从一开始。我也安装了Visual Studio 2005,2008和2010。这可能是我的问题的原因吗? – 2011-06-16 12:26:36