problem installing mysql in windows

Discussion in 'Ruby' started by Andres M. Hidalgo, Aug 19, 2005.

  1. I got the following error installing mysql using command:
    gem install mysql --remote

    Attempting remote installation of 'mysql'
    Building native extensions. This could take a while...
    ERROR: While executing gem ... (RuntimeError)
    ERROR: Failed to build gem native extension.
    Gem files will remain installed in
    c:/ruby/lib/ruby/gems/1.8/gems/mysql-2.6 for
    inspection.
    ruby extconf.rb install mysql --remote\nchecking for mysql_query() in
    mysqlclient.lib... no
    checking for main() in m.lib... yes
    checking for mysql_query() in mysqlclient.lib... no
    checking for main() in z.lib... no
    checking for mysql_query() in mysqlclient.lib... no
    checking for main() in socket.lib... no
    checking for mysql_query() in mysqlclient.lib... no
    checking for main() in nsl.lib... no
    checking for mysql_query() in mysqlclient.lib... no

    Results logged to c:/ruby/lib/ruby/gems/1.8/gems/mysql-2.6/gem_make.out


    Any ideas how to fix this problem?.

    Thanks

    Andres
     
    Andres M. Hidalgo, Aug 19, 2005
    #1
    1. Advertising

  2. Andres M. Hidalgo

    rcoder Guest

    The 'mysql' gem only provides the Ruby bindings to the MySQL client API
    -- you have to separately install the MySQL libraries for your system.
    I'm going to go out on a limb and assume you're trying to run Ruby on
    Rails, (and hence posted this question here) you'll probably want the
    full MySQL server installation, as well.

    Basically, go to mysql.com, download the latest Windows distribution,
    and make sure your MySQL install is working before trying to install
    the Ruby bindings.

    -Lennon
     
    rcoder, Aug 19, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Olivier Langlois

    Problem with installing MySQL-python-1.2.1_p2

    Olivier Langlois, May 24, 2006, in forum: Python
    Replies:
    0
    Views:
    317
    Olivier Langlois
    May 24, 2006
  2. Christopher Aldridge

    Installing MySQL Module on Windows?

    Christopher Aldridge, Aug 13, 2005, in forum: Ruby
    Replies:
    3
    Views:
    222
  3. Alain FELER

    Installing Mysql/ruby on Windows 2000

    Alain FELER, Feb 2, 2006, in forum: Ruby
    Replies:
    1
    Views:
    139
    Tom Reilly
    Feb 2, 2006
  4. Geoff Rowell
    Replies:
    5
    Views:
    394
    Manish Nautiyal
    Aug 3, 2010
  5. Glenn
    Replies:
    3
    Views:
    113
    Glenn
    Dec 5, 2004
Loading...

Share This Page