From: "Berger, Daniel" Date: 2006-05-17T01:24:06+09:00 Subject: Re: GetoptLong Accessing the values with out looping > -----Original Message----- > From: Paul D. Kraus [mailto:paul.kraus@gmail.com] > Sent: Tuesday, May 16, 2006 10:04 AM > To: ruby-talk ML > Subject: Re: GetoptLong Accessing the values with out looping > > > > > > > > Yes, it sucks. That's why I wrote the 'getopt' package. > > > > gem install getopt :) > > > > require 'getopt/long' > > include Getopt > > > I am having an issue with the script working. Is their some > path variable that needs to be set for ruby to see the gem packages? > > Initially i have the ubuntu ruby pkgs installed. I have > removed them and built ruby 1.8.4 and gems 0.8.11 built from source. > > Any ideas? Do you see a long.rb under /usr/local/lib/ruby/gems/1.8/gems/getopt-1.3.4? If not, something went wrong. If so, then maybe you need to set your RUBYOPT environment variable, or you'll need to require 'rubygems' first. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.