Newby - trying to load depot_v from book

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
Fetching source index for http://rubygems.org/
Using rake (0.9.2.2)
Using multi_json (1.0.3)
Using activesupport (3.1.0)
Using bcrypt-ruby (3.0.1)
Using builder (3.0.0)
Using i18n (0.6.0)
Using activemodel (3.1.0)
Using erubis (2.7.0)
Using rack (1.3.5)
Using rack-cache (1.0.3)
Using rack-mount (0.8.3)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.0.3)
Using actionpack (3.1.0)
Using mime-types (1.17.2)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.3.0)
Using actionmailer (3.1.0)
Using active_utils (1.0.1)
Using braintree (2.13.1)
Using json (1.6.1)
Using money (3.7.1)
Using activemerchant (1.20.0)
Using arel (2.2.1)
Using tzinfo (0.3.31)
Using activerecord (3.1.0)
Using activeresource (3.1.0)
Using ansi (1.4.1)
Using bundler (1.0.21)
Using highline (1.6.8)
Using net-ssh (2.2.1)
Using net-scp (1.0.4)
Using net-sftp (2.0.5)
Using net-ssh-gateway (1.1.0)
Using capistrano (2.9.0)
Using coffee-script-source (1.1.3)
Using execjs (1.2.9)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using rdoc (3.11)
Using thor (0.14.6)
Using railties (3.1.0)
Using coffee-rails (3.1.1)
Using haml (3.1.3)
Using jquery-rails (1.0.18)
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:
C:\Sites\depot_v>rails s
?[31mCould not find gem ‘rails (= 3.1.0) x86-mingw32’ in any of the gem
sources
listed in your Gemfile.?[0m
?[33mRun bundle install to install missing gems.?[0m

Yes where is the newbie section? If you’re a newbie then I’m whatever
comes before a newbie.

David B. 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:

Hope that helps,

Luis L.