Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ruby with MySQL on Windows

Status
Not open for further replies.

smelban

Programmer
Oct 3, 2005
1
US
I'm running WAMP ( and I got Ruby to run by adding .rb as a perl extension and including the ruby path in the top of my script.

I have been unable to get the mysql function to work. Has anyone had any luck running the "gem install mysql" command? I get the following error. The doc in the install path says "% env LD_RUN_PATH=libmysqlclient.so directory make" but I don't really get it.

ruby extconf.rb install 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
 
If you installed using the "one-click ruby installer", mysql support comes with. how/when did you install?

One-Click Ruby Installer:
"Rolling with Rails" article that talks you through setup (but doesn't use wamp) for mysql/ruby:
Liam Morley
Software Engineer
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top