agileaholic :)

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

Posted in agile by Prabhu Beeman on September 29, 2009

I was trying my hands for the first time on RoR (Ruby on Rails).
(Netbeans 6.7 , Windows XP).

In the process, I got the following (misleading error)

126: The specified module could not be found – ../mysql_api.so

But mysql_api.so was in the path where ruby was looking for.
Solution:
Make sure your MySql bin path is in your PATH variable.

Advertisements
Tagged with: ,

2 Responses

Subscribe to comments with RSS.

  1. Fitri said, on July 8, 2011 at 12:48 pm

    sorry, but your solution is not clear. how to “make sure your MySql bin path is in your PATH variable.”??

    • Prabhu Beeman said, on July 8, 2011 at 1:07 pm

      MySQL bin path:
      Look out for the folder where you installed MySQL.
      For eg. If you installed MySQL in “C:\Program Files\MySQL 5.0” then your bin path will be “C:\Program Files\MySQL 5.0\bin”

      How to set path variable?
      1) Go to Start -> Run
      2) Type the following

      sysdm.cpl

      3) Click the Advanced Tab
      4) Click on the “Environment Variables” button
      5) Click on the New button under “User Variables” panel
      6) Enter the value of Variable Name as ‘Path’ (sans quotes)
      7) Enter the value of Variable Values as MySQLBin path (depends on your install location as explained above)
      8) Click OK
      Restart Netbeans


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: