Forum: Ruby on Rails mysql installation in Windows 7

Posted by Ed Ziba (edziba)
on 2013-01-29 05:33
I have Windows 7.   I am trying to get the gem installed for MySQL
Server 5.5
So, I get the zip file for gem from Brian Mario’s repository on github
mysql2, extract it in the new mysql2-0.3.12b5 folder and start the
procedure as follows.  As seen below, I get the error “file 'lib' not
found” at the end.  I tried many times, got the same problem.  Anyone
has a solution to this?

EDZIBA-PC
/c/railsinstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.12b5
$ gem build mysql2.gemspec
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
WARNING:  no description specified
  Successfully built RubyGem
  Name: mysql2
  Version: 0.3.12b5
  File: mysql2-0.3.12b5.gem

EDZIBA-PC
/c/railsinstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.12b5
$ subst X: "C:\Program Files\MySQL\MySQL Server 5.5"
Drive already SUBSTed

EDZIBA-PC
/c/railsinstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/mysql2-0.3.12b5
$ gem install mysql2-0.3.12b5.gem --platform=ruby -- --with-mysql-dir=X:
--with-mysql-lib=X:\lib
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed mysql2-0.3.12b5
1 gem installed
Installing ri documentation for mysql2-0.3.12b5...
file 'lib' not found
Installing RDoc documentation for mysql2-0.3.12b5...
file 'lib' not found
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.