From: Ryan Davis Date: 2010-11-09T13:19:10+09:00 Subject: Re: no such file to load -- mysql (LoadError) On Nov 8, 2010, at 19:52 , Ani T. wrote: > Hi! I am new to Ruby and just installed RadRails and also did gem > install mysql and specifiled the path as > C:\Ruby\lib\ruby\gems\1.8\gems\mysql-2.7.3-x86-mswin32\ext > when i run the following: > > require 'mysql' > if __FILE__ == $0 > # TODO Generated stub > print "Hello\n" > end > > I am getting the following error > test1.rb:4:in `require': no such file to load -- mysql (LoadError) > from test1.rb:4 You're running 1.8 so you need to add "require 'rubygems'" before your "require 'mysql'" line.