# Re: GetoptLong Accessing the values with out looping

**URL:** <https://www.ruby-forum.com/t/re-getoptlong-accessing-the-values-with-out-looping/94857>\
**Category:** Ruby\
**Created:** [May 16, 2006, 6:24pm UTC](https://www.ruby-forum.com/t/re-getoptlong-accessing-the-values-with-out-looping/94857 "2006-05-16T18:24:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [May 16, 2006, 6:24pm UTC](https://www.ruby-forum.com/t/re-getoptlong-accessing-the-values-with-out-looping/94857/1 "2006-05-16T18:24:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [May 16, 2006, 8:00pm UTC](https://www.ruby-forum.com/t/re-getoptlong-accessing-the-values-with-out-looping/94857/2 "2006-05-16T20:00:35Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![BergerS\_Daniel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bc8723/32.png) [@BergerS\_Daniel](https://www.ruby-forum.com/u/BergerS_Daniel)\
**Post date:** [May 17, 2006, 12:53am UTC](https://www.ruby-forum.com/t/re-getoptlong-accessing-the-values-with-out-looping/94857/3 "2006-05-17T00:53:23Z")

</div>

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

> 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?)
