Im trying to install mysql-ruby on windows 2000.
I thought version 2.7.1 installed properly
even when I got a failed installation of 2.7.0
the command I used was “gem install mysql”.
That seemed to work perfectly so I
ran a mysql-ruby test program from
I was thrown this ruby error. Does this mean that Mysql.2.7.1 didnt
install properly either?
The specified module could not be found.
‘require’ from simple.rb1
I also should mention a window pops up after running the command
the window says
ruby.exe - Unable to Locate Component.
this application has failed to start because LIBMYSQL.dll was not found.
Re-installing the application may fix this problem.
Does that help any more with what this problem is?
What should I do?
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:
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.
My fix was reinstalling a few times till I got everything working.