Note that there are some explanatory texts on larger screens.

plurals
  1. POFinally installed MySQL for Rails in Windows 64 bit, and now
    primarykey
    data
    text
    <p>Environment:</p> <pre><code>Windows 7 64bit (Home Premium) Ruby 1.9.2 p290 (2011-07-09) [i386-mingw32] Rails 3.0.10 MySQL 5.5 </code></pre> <p>Ruby, despite my having successfully installed the <code>mysql2</code> rubygem thinks that the gem is missing when I invoke a rails command that requires it.</p> <p>After having spent the evening getting the mysql rubygem installed on Windows 64 bit, I decided to (finally) get cracking on linking mysql to a local rails server. This is how I was trying to do it...</p> <p>(Fairly) Exact transcript from <code>cmd.exe</code></p> <pre><code>C:\rails\cookbook&gt;gem install mysql --platform=ruby -- --with-mysql-include=c:\mysql\include --with-mysql-lib=c:\mysql\lib Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... Successfully installed mysql-2.8.1 1 gem installed Installing ri documentation for mysql-2.8.1... Installing RDoc documentation for mysql-2.8.1... (I thought this was successful mysql install, should I test it somehow?) C:\&gt;gem install mysql2 --platform=ruby -- --with-mysql-include=c:\mysql\include --with-mysql-lib=c:\mysql\lib Fetching: mysql2-0.3.7.gem (100%) Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... Successfully installed mysql2-0.3.7 1 gem installed Installing ri documentation for mysql2-0.3.7... Enclosing class/module 'mMysql2' for class Client not known Installing RDoc documentation for mysql2-0.3.7... Enclosing class/module 'mMysql2' for class Client not known (Same as above - I thought this was successful mysql install) C:\rails&gt;rails new cookbook -d mysql (successfully creates directories for project in c:\rails\cookbook) C:\rails\cookbook&gt;rails server ?[31mCould not find gem 'mysql2 (~&gt; 0.2.11)' in any of the gem sources listed in your Gemfile.?[0m ?[33mRun `bundle install` to install missing gems.?[0m </code></pre> <p>Notes: I noticed it wants rubygem <code>mysql2-0.2.11</code>, I have <code>0.3.7</code>. I tried installing <code>0.2.11</code> specifically by the method I used to install the two gems above. No dice, it couldn't find a gem by the name <code>mysql2-0.2.11</code> in 'any repository'</p> <p>I'm stumped, any thoughts fellas (and gals)?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload