Installing MySQL Module on Windows?

Discussion in 'Ruby' started by Christopher Aldridge, Aug 13, 2005.

  1. All, I'm having a very tuff time getting this mysql module working on
    XP. All searches yeild how to's that were last updated in 2003, or
    linux only environments.

    Anyone here know an exact method of getting this working?

    (note, I've tried non 2.7-beta2 versions of this module and other
    versions of mysql to no avail)

    C:\mysql-ruby-2.7-beta2>extconf.rb
    checking 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

    C:\mysql-ruby-2.7-beta2>extconf.rb --with-mysql-dir=3Dc:/mysql
    checking 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

    C:\mysql-ruby-2.7-beta2>mysql --version
    mysql Ver 14.7 Distrib 4.1.13a, for Win32 (ia32)
    C:\mysql-ruby-2.7-beta2>



    HELP!! :)
     
    Christopher Aldridge, Aug 13, 2005
    #1
    1. Advertising

  2. ------=_Part_10291_21413685.1123905321631
    Content-Type: text/plain; charset=ISO-8859-1
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline

    I went through similar pains and never did figure it out. Finally someone=
    =20
    demonstrated using ActiveRecord for me. I didn't need to do any=20
    MySQL-specific setup to get that to work with MySQL. That's what I use now.

    On 8/12/05, Christopher Aldridge <> wrote:
    >=20
    > All, I'm having a very tuff time getting this mysql module working on
    > XP. All searches yeild how to's that were last updated in 2003, or
    > linux only environments.
    >=20
    > Anyone here know an exact method of getting this working?
    >=20
    > (note, I've tried non 2.7-beta2 versions of this module and other
    > versions of mysql to no avail)
    >=20
    > C:\mysql-ruby-2.7-beta2>extconf.rb
    > checking 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
    >=20
    > C:\mysql-ruby-2.7-beta2>extconf.rb --with-mysql-dir=3Dc:/mysql
    > checking 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
    >=20
    > C:\mysql-ruby-2.7-beta2>mysql --version
    > mysql Ver 14.7 Distrib 4.1.13a, for Win32 (ia32)
    > C:\mysql-ruby-2.7-beta2>
    >=20
    >=20
    >=20
    > HELP!! :)
    >=20
    >=20



    --=20
    R. Mark Volkmann
    Partner, Object Computing, Inc.

    ------=_Part_10291_21413685.1123905321631--
     
    Mark Volkmann, Aug 13, 2005
    #2
    1. Advertising

  3. I briefly read into ActiveRecord and do not think it will suffice
    given my scenerio.

    As of now, I'm doing inserts into MySQL by using system("mysql -u x -p
    x db -e "insert into asdf values ${asfd})

    I just feel that this is hacky.. I even looked into odbc but that's
    only usable w/ this mysql module :-\


    On 8/12/05, Mark Volkmann <> wrote:
    > I went through similar pains and never did figure it out. Finally someone
    > demonstrated using ActiveRecord for me. I didn't need to do any
    > MySQL-specific setup to get that to work with MySQL. That's what I use no=

    w.
    >=20
    > On 8/12/05, Christopher Aldridge <> wrote:
    > >
    > > All, I'm having a very tuff time getting this mysql module working on
    > > XP. All searches yeild how to's that were last updated in 2003, or
    > > linux only environments.
    > >
    > > Anyone here know an exact method of getting this working?
    > >
    > > (note, I've tried non 2.7-beta2 versions of this module and other
    > > versions of mysql to no avail)
    > >
    > > C:\mysql-ruby-2.7-beta2>extconf.rb
    > > checking 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
    > >
    > > C:\mysql-ruby-2.7-beta2>extconf.rb --with-mysql-dir=3Dc:/mysql
    > > checking 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
    > >
    > > C:\mysql-ruby-2.7-beta2>mysql --version
    > > mysql Ver 14.7 Distrib 4.1.13a, for Win32 (ia32)
    > > C:\mysql-ruby-2.7-beta2>
    > >
    > >
    > >
    > > HELP!! :)
    > >
    > >

    >=20
    >=20
    > --
    > R. Mark Volkmann
    > Partner, Object Computing, Inc.
    >=20
    >
     
    Christopher Aldridge, Aug 13, 2005
    #3
  4. Christopher Aldridge

    Dema Guest

    Take a look here and see if that works for you:
    http://dema.ruby.com.br/articles/2005/07/11

    rgds
    Dema

    Christopher Aldridge wrote:
    > I briefly read into ActiveRecord and do not think it will suffice
    > given my scenerio.
    >
    > As of now, I'm doing inserts into MySQL by using system("mysql -u x -p
    > x db -e "insert into asdf values ${asfd})
    >
    > I just feel that this is hacky.. I even looked into odbc but that's
    > only usable w/ this mysql module :-\
    >
    >
    > On 8/12/05, Mark Volkmann <> wrote:
    > > I went through similar pains and never did figure it out. Finally someone
    > > demonstrated using ActiveRecord for me. I didn't need to do any
    > > MySQL-specific setup to get that to work with MySQL. That's what I use now.
    > >
    > > On 8/12/05, Christopher Aldridge <> wrote:
    > > >
    > > > All, I'm having a very tuff time getting this mysql module working on
    > > > XP. All searches yeild how to's that were last updated in 2003, or
    > > > linux only environments.
    > > >
    > > > Anyone here know an exact method of getting this working?
    > > >
    > > > (note, I've tried non 2.7-beta2 versions of this module and other
    > > > versions of mysql to no avail)
    > > >
    > > > C:\mysql-ruby-2.7-beta2>extconf.rb
    > > > checking 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
    > > >
    > > > C:\mysql-ruby-2.7-beta2>extconf.rb --with-mysql-dir=c:/mysql
    > > > checking 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
    > > >
    > > > C:\mysql-ruby-2.7-beta2>mysql --version
    > > > mysql Ver 14.7 Distrib 4.1.13a, for Win32 (ia32)
    > > > C:\mysql-ruby-2.7-beta2>
    > > >
    > > >
    > > >
    > > > HELP!! :)
    > > >
    > > >

    > >
    > >
    > > --
    > > R. Mark Volkmann
    > > Partner, Object Computing, Inc.
    > >
    > >
     
    Dema, Aug 14, 2005
    #4
    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. Ravi
    Replies:
    6
    Views:
    1,444
    Suchandra Thapa
    Jul 21, 2003
  2. Jonas Schneider
    Replies:
    1
    Views:
    330
    Diez B. Roggisch
    Sep 3, 2007
  3. bin liu
    Replies:
    1
    Views:
    144
    Curt Hibbs
    Dec 22, 2004
  4. Geoff Rowell
    Replies:
    5
    Views:
    423
    Manish Nautiyal
    Aug 3, 2010
  5. Tobiah

    Mysql's mysql module

    Tobiah, Oct 7, 2013, in forum: Python
    Replies:
    1
    Views:
    123
    Skip Montanaro
    Oct 7, 2013
Loading...

Share This Page