From: Luis Lavena Date: 2011-08-30T07:04:56+09:00 Subject: Re: Connecting Ruby and MySQL amir e. wrote in post #1018955: > I installed MySQL 5.5 ( mysql-installer-5.5.15.0.msi ) and mysql gem ( > with "gem install mysql" command ) . Now I write a simple program ( from > this website : > http://rubylearning.com/blog/2007/05/14/ruby-mysql-tutorial/ ) and when > I run it ruby give me this message : > > > > "C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in > `require': 126: The specified module could not be found. - > C:/Ruby192/lib/ruby/gems/1.9.1/gems/mysql-2.8.1-x86-mingw32/lib/1.9/mysql_api.so > (LoadError)" > > The problem lies in the incompatibility of the mysql gem (binary version) and the installed MySQL. When you do "gem install mysql" it prints out some notes about this. To solve this, please follow the instructions on this blog post: http://blog.mmediasys.com/2011/07/07/installing-mysql-on-windows-7-x64-and-using-ruby-with-it/ You can skip the MySQL installation steps as you already installed it. You need RubyInstaller's DevKit installed. All the links are provided in the blog post. -- Luis Lavena -- Posted via http://www.ruby-forum.com/.