GetoptLong Accessing the values with out looping

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.

···

-----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 :slight_smile:
>
> 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.

Its there. Still no go. I am going to uninstall ruby and use gems to install
it.
Any suggestions on how to remove ruby? It was compiled from source.

Thanks everyone for all there help today.
Paul

Wait, did you do this:

require 'rubygems'
require 'getopt/long'

# rest of script

Use gems to install what? If you mean ruby, you can't install ruby from a gem (especially not after removing ruby, w/o ruby how is rubygems supposed to run?)

···

On May 16, 2006, at 1:58 PM, Paul D. Kraus wrote:

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.

Its there. Still no go. I am going to uninstall ruby and use gems to install
it.
Any suggestions on how to remove ruby? It was compiled from source.

Thanks everyone for all there help today.
Paul