From: Chih tung Chao Date: 2010-12-15T18:18:52+09:00 Subject: Re: No such file to load -- rubygems (LoadError) Ryan Davis wrote in post #968509: > On Dec 15, 2010, at 00:55 , Chih tung Chao wrote: > >> /root/scripts/auto_send_mail_for_hk.rb:7:in `require': No such file to >> load -- rubygems (LoadError) >> from /root/scripts/auto_send_mail_for_hk.rb:7 > > env | grep RUBY > > you're probably activating rubygems via your environment. Your script > should have: > > require "rubygems" > > before requiring your email gem. My script already have require "rubygems", and how to set rubygems environment in my system ? -- Posted via http://www.ruby-forum.com/.