From: Micah Wolfe <52w7te9ara@...> Date: 2011-03-15T09:55:28+09:00 Subject: Re: Any ideas? Brian Candler wrote in post #987315: > You don't happen to have a file called "mysql.rb" in your working > directory do you? > > I made that mistake before - for example, writing a test program for > sinatra and deciding to call it 'sinatra.rb' :-) Hi Brian, Thanks for the response. No, I only have the ruby gem 'mysql.rb' with that name. >> I don't think this is a script problem, but everything seems to check >> out with the MySQL, and the other gems. >> >If a simple Mysql.new fails, I'd be real tempted to delete that gem and >reinstall. Have you possibly done an OS upgrade since you originally >installed it? Or switched to rvm? Hi Hassan, Thanks for bearing with me on this. No OS upgrade, haven't switched, not using the version manager (should I be?). I changed line 11 to borderDB = Mysql.real_connect('localhost', 'root', 'root', 'my_database') and now I get the following error: ./Desktop/gen_encpolygons.rb:11:in `generate_js_border_overlay': undefined method `real_connect' for Mysql:Class (NoMethodError) from ./Desktop/gen_encpolygons.rb:95 Yes, mysql.new failed. So, I think I am going to uninstall the gem, and reinstall it. Would it be better to use the 'pure ruby' gem? What would you guys recommend? Best, Micah -- Posted via http://www.ruby-forum.com/.