I was thrown this ruby error. Does this mean that Mysql.2.7.1 didnt
install properly either?
ruby simple.rb
C:/ruby/lib/ruby/gems/1.8/gems/mysql-2.7.1-mswin32/ext/mysql.so: 126:
The specified module could not be found.
-c:/ruby/lib/ruby/gems/1.8/gems/mysql-2.7.1-mswin32/ext/mysql.so
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in
‘require’ from simple.rb1
You probably figured this out by now, but for those that are having the
same problem, this is caused by the libmysql.dll not being on your path.
Essentially, that means that you have to make sure that the DLL is on
your path before running ruby, for example:
set PATH=%PATH%;c:\progra~1\mysql50\lib\opt;c:\progra~1\mysql50\include;
ruby script.server
If you are running 64bit MySQL and 32bit Ruby, you will need to download
the 32-bit libmysql.dll from mysql.com (e.g. by downloading the 32bit
MySQL zip package) and set the path to point to that.