-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Andrew Buchan wrote: > I have Ruby version 1.8.4 on XP SP 2. > > I installed Mysql Server 5.0.2 - this worked fine. > > I then tried some code like > > require "mysql" > > That code failed, I searched and found I have to run extconf.rb > > My question is, according to http://www.tmtm.org/en/mysql/ruby/ I need > to add a path to the end of extconf.rb, such as > > ruby extconf.rb --with-mysql-dir=/usr/local/mysql > > I have ruby installed at c:\ruby > And mysql installed at c:\program files\mysql > > What will be the path? > > Totally lost here, http://www.tmtm.org/en/mysql/ruby/ The above link points to a ruby extension for mysql that is written in C. It has to be compiled. Compiling it on windows is a real pain. The "ruby extconf.rb ..." command is used to start compiling the extension. http://www.tmtm.org/en/mysql/ruby/ This link is the pure-ruby version of the driver. It doesn't need to compiled. The easiest way to get this is probably by typing at a command prompt: gem install mysql You should be able to test this by opening a command prompt and typing "irb" and hitting enter. Then try: require 'mysql' Mysql.client_info If that errors and you did the "gem install mysql" previously then try: require 'rubygems' require 'mysql' Mysql.client_info HTH, Zach -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEWlh/Myx0fW1d8G0RAgn+AJ0RuIIPMZbYWgwjgLaWanM/m1J0YQCcC2uM gZAmaFSqe6qAM9k1dfCZ8gw= =l7fE -----END PGP SIGNATURE-----