From: Rob Biedenharn Date: 2008-06-06T07:36:08+09:00 Subject: Re: RubyToC Question On Jun 5, 2008, at 6:30 PM, Philip Rhoades wrote: > People, > > RubyToC installs OK: > > # gem install RubyToC > Bulk updating Gem source index for: http://gems.rubyforge.org > Successfully installed RubyToC-1.0.0.5 > Installing ri documentation for RubyToC-1.0.0.5... > Installing RDoc documentation for RubyToC-1.0.0.5... > > However when I try and run an example script: > > require 'ruby_to_ansi_c' > class MyTest > def say_hello > puts "hello" > end > > def main > say_hello > return 0 > end > end > > I get: > > $ ./truby2c.rb > ./truby2c.rb:3:in `require': no such file to load -- ruby_to_ansi_c > (LoadError) > from ./truby2c.rb:3 > > What is wrong? > > Thanks, > > Phil. > -- > Philip Rhoades > > Pricom Pty Limited (ACN 003 252 275 ABN 91 003 252 275) > GPO Box 3411 > Sydney NSW 2001 > Australia > E-mail: phil@pricom.com.au Try adding: require 'rubygems' before you require the ruby_to_ansi_c -Rob Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com