MySQL Forums
Forum List  »  Newbie

gem install mysql2 error
Posted by: Mehdi Mirshahi
Date: January 27, 2013 10:46PM

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

Options: ReplyQuote


Subject
Written By
Posted
gem install mysql2 error
January 27, 2013 10:46PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.