From: Navindra Umanee Date: 2005-02-28T10:57:02+09:00 Subject: Re: Why can I not connect MySql from Ruby ? Arie Kusuma Atmaja wrote: > The code I wrote is : mysql.rb > > require 'mysql' Give your file another name. require 'mysql' might be including itself instead of the Mysql class. > The Error I got is : > > ./mysql.rb:3: uninitialized constant Mysql (NameError) > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in > 'require__' > from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/loadpath_manager.rb:5:in > 'require' Argh RubyGems... they do some ugly things with require too. Anyway try the above suggestion first before worrying about rubygems... -N.