From: Luis Lavena Date: 2011-11-19T10:29:24+09:00 Subject: Re: Newby - trying to load depot_v from book David Burton wrote in post #1032626: > First - is there a section on this forum or another forum for Newbies. > I don't want to interfere with the pros. > > I'm trying to load and run the depot_v sample cod from the Rapid book. > > Here is my console: > > C:\Sites\depot_v>bundle install > Installing mysql2 (0.3.10) with native extensions > Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native > extension > . > > C:/RailsInstaller/Ruby1.9.2/bin/ruby.exe extconf.rb > checking for rb_thread_blocking_region()... yes > checking for rb_wait_for_single_fd()... no > checking for main() in -llibmysql... no > *** 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. > > When I try to run Rails, I get: It is failing to compile mysql2 gem due missing headers and libraries. Please take a look to this blog posts: http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/ Which describes the installation instructions for MySQL and mysql gem on Windows. You can install mysql2 gem following the same instructions, jsut change the occurrences of mysql for mysql2. The only part that will not work is the test example. Note: it assumes you have RubyInstaller and the DevKit installed, if not and you don't want to deal with the installation instructions, please use RailsInstaller instead: http://railsinstaller.org/ Hope that helps, -- Luis Lavena -- Posted via http://www.ruby-forum.com/.