On 27 Apr 2011, at 17:24, Sayem Islam <li...@ruby-forum.com> wrote:
> I'm trying to set up a cron job with a runner that calls a method in one > of my models. I'm using javan's whenever gem to do this and I'm running > CentOS on my server. Whenever the cron executes though I'm getting the > following error: > How is ruby installed on your server? Fred > `require': no such file to load -- rubygems (LoadError) > > The method uses the 'mail' and 'nokogiri' gems. I tried cron again by > including 'require rubygems' as well, but that doesn't seem to help. I > suspect that it may be a problem with my path variables. > > Any advice on how to fix this though? Thanks, any help would be really > appreciated. > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.