From: "s.ross" Date: 2008-01-20T06:06:40+09:00 Subject: Re: Ruby with Mac OS X Sorry... your last couple of posts wound up in my spam. If you haven't figured this out yet, here's what I suggest. $ cd /wherever/your/program/lives $ irb >> require 'rubygems' >> require 'yaml' >> f = File.open("arrays/captions_number.yaml") >> f.close >> my_yaml = File.open("arrays/captions_number.yaml") { |yf| YAML::load(yf) } At each of these steps you can determine success/failure of the operation. See if this gets you closer. On Jan 19, 2008, at 9:43 AM, Tj Superfly wrote: > That works fine, the output was "YAML". From what you said, that's a > good sign. > > Now I'm still getting the same error message that I posted above > when I > run the program. > > "Macintosh: ~Xepha$ ruby /users/Xepha/Documents/for-v/numbered_news.rb > /users/Xepha/Documents/for-v/numbered_news.rb:14: uninitialized > constant > YAML (NameError)" > > And, turns our 1.9.0 is the current one installed and running; she > didn't know that it was preinstalled on macs. =/ So, yes she is > running > 1.9.0 now; YAML is "working" just not in the program that I've > written. > -- > Posted via http://www.ruby-forum.com/. >