126: The specified module could not be found - ../mysql.so

Hi All,

I het following error:
126: The specified module could not be found. - C:/InstantRails/ruby/
lib/ruby/gems/1.8/gems/mysql-2.7.3-x86-mswin32/ext/mysql.so

mysql.so is present in the dir. I have rails 2.2

Someone seen this before?

Thanks.
Stijn

i thnk ur mysql is not working properly try to install it again

Installing results in:
gem install mysql
Successfully installed mysql-2.7.3-x86-mswin32
1 gem installed
Installing ri documentation for mysql-2.7.3-x86-mswin32...
Installing RDoc documentation for mysql-2.7.3-x86-mswin32...
ERROR: While generating documentation for mysql-2.7.3-x86-mswin32
... MESSAGE: Unhandled special: Special: type=17, text="<!-- $Id:
README.html,v 1.20 2006-12-20 05:31:52 tommy Exp $ -->"
... RDOC args: --op C:/InstantRails/ruby/lib/ruby/gems/1.8/doc/
mysql-2.7.3-x86-mswin32/rdoc --exclude ext --main README --quiet ext
README docs/README
.html
(continuing with the rest of the installation)

there's something seriously screwed up with the new mysql gem,
especially for Vista users. You are not alone in having these problems
and I personally have not yet found a solution.

Matthew Phillips wrote:

there's something seriously screwed up with the new mysql gem,
especially for Vista users. You are not alone in having these problems
and I personally have not yet found a solution.

But just to point you in the right direction, make sure your mysql bin
directory is in your path. Type PATH in the command prompt to see if it
is. If not, add it. From there try again.

putting the mysql bin in the path solved my problem.

Many thank
Stijn

Here's what I've found that works, unfortunately I don't know how to
push it back up to where ever gem install is pulling mysql from.

1) Go to http://tmtm.org/downloads/mysql/ruby/ and download mysql-
ruby-2.7.3.tar.gz (or whatever version you'ld like - but the gemspec
that follows will need some doctoring)

2) Unpack the download: "gzcat mysql-ruby-2.7.3.tar.gz | tar xvf -"
will give you a new directory mysql-ruby-2.7.3

3) In the directory mysql-ruby-2.7.3, add the following as
"mysql.gemspec" (without the equal... lines:-)

Matthew,

I am also getting the same error and looks like the solution that you
gave worked. How can I add the path

Please help

Thanks,
Ahmed

Ruby Newbie wrote in post #766819:

Matthew,

I am also getting the same error and looks like the solution that you
gave worked. How can I add the path

Please help

Thanks,
Ahmed

On Nov 28 2008, 2:30 pm, Matthew Phillips <rails-mailing-l...@andreas-

Well, you just enter to the ruby CMD and put the command 'path'.
It will print the value of the path variable.
Copy it to notepad and add the requested path.
then go back to the cmd and write: path <the old variable value with the
addition of the requsted path>.

The next time you'll run the path command you will see the path with
your addition.