From: Michael Brooks Date: 2010-11-09T15:05:20+09:00 Subject: Re: no such file to load -- mysql (LoadError) "Ani T." wrote in message news:530f7d0fe5605ca667f48ecf39046632@ruby-forum.com... > Hi Ryan, Thanks for your post. > > I inserted "require 'rubygems'" and am now getting the following error: > C:/ruby/lib/ruby/gems/1.8/gems/mysql-2.7.3-x86-mswin32/ext/mysql.so: > 126: The specified module could not be found. - > C:/ruby/lib/ruby/gems/1.8/gems/mysql-2.7.3-x86-mswin32/ext/mysql.so > (LoadError) > from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in > `require' > from test1.rb:4 > > I checked the locatins above and the mysql.so and custom_require.rb > files exist...not sure why it is giving the error...thanks in advance > for your help. I've attached screenshots incase it is helpful. > > Ani Hello Ani: This might not make a difference but is the location of the "libmySQL.dll" file (usually the mysql/bin folder) in your systems $PATH environment variable. I haven't tried using MYSQL with Ruby but recently on Windows Vista 64 when developing with Delphi XE I've noticed that the mysql dll needs to be in the $PATH variable. In the old days I could drop that dll into the application folder but that doesn't seem to work for me anymore so you might be experiencing the same thing. Michael