# Gem install getopt problem

**URL:** <https://www.ruby-forum.com/t/gem-install-getopt-problem/48311>\
**Category:** Ruby\
**Created:** [November 18, 2005, 7:14pm UTC](https://www.ruby-forum.com/t/gem-install-getopt-problem/48311 "2005-11-18T19:14:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vjoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e68b1a/32.png) [@vjoel](https://www.ruby-forum.com/u/vjoel)\
**Post date:** [November 18, 2005, 7:14pm UTC](https://www.ruby-forum.com/t/gem-install-getopt-problem/48311/1 "2005-11-18T19:14:19Z")

</div>

$ gem install getopt  
Attempting local installation of ‘getopt’  
Local gem file not found: getopt\*.gem  
Attempting remote installation of ‘getopt’  
Successfully installed getopt-1.3.0  
Installing RDoc documentation for getopt-1.3.0…  
File not found: lib  
$ ls /usr/local/lib/ruby/gems/1.8/gems/getopt-1.3.1  
CHANGES MANIFEST README test

So it seems the lib subdir is not being created for some reason.

Anyone else see this? Other gems seem fine.

$ gem -v  
0.8.11  
$ ruby -v  
ruby 1.8.2 (2004-12-25) [i686-linux]

---

<div class="post-metadata">

**Author:** ![vjoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e68b1a/32.png) [@vjoel](https://www.ruby-forum.com/u/vjoel)\
**Post date:** [November 18, 2005, 7:26pm UTC](https://www.ruby-forum.com/t/gem-install-getopt-problem/48311/2 "2005-11-18T19:26:24Z")

</div>

Joel VanderWerf wrote:

> So it seems the lib subdir is not being created for some reason.
> 
> Anyone else see this? Other gems seem fine.
> 
> $ gem -v  
> 0.8.11  
> $ ruby -v  
> ruby 1.8.2 (2004-12-25) [i686-linux]

That’s weird. It looks like the gem file is broken for some reason (I  
just  
tried a local install). The only thing I changed was the version, from  
1.3.0  
to 1.3.1.

I have absolutely no idea what’s wrong.

Dan

---

<div class="post-metadata">

**Author:** ![vjoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e68b1a/32.png) [@vjoel](https://www.ruby-forum.com/u/vjoel)\
**Post date:** [November 18, 2005, 7:50pm UTC](https://www.ruby-forum.com/t/gem-install-getopt-problem/48311/3 "2005-11-18T19:50:33Z")

</div>

Joel VanderWerf said:

> So it seems the lib subdir is not being created for some reason.
> 
> Anyone else see this? Other gems seem fine.

The lib and examples directories are not included in the gem archive  
itself.

---

<div class="post-metadata">

**Author:** ![vjoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e68b1a/32.png) [@vjoel](https://www.ruby-forum.com/u/vjoel)\
**Post date:** [November 18, 2005, 8:29pm UTC](https://www.ruby-forum.com/t/gem-install-getopt-problem/48311/4 "2005-11-18T20:29:47Z")

</div>

Jim W. wrote:

> > CHANGES MANIFEST README test
> > 
> > So it seems the lib subdir is not being created for some reason.
> > 
> > Anyone else see this? Other gems seem fine.
> 
> The lib and examples directories are not included in the gem archive itself.

Whoopsie. I messed up the gemspec (fixed now). I’ll upload a new gem  
shortly.

Dan

---

<div class="post-metadata">

**Author:** ![vjoel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/e68b1a/32.png) [@vjoel](https://www.ruby-forum.com/u/vjoel)\
**Post date:** [November 18, 2005, 9:21pm UTC](https://www.ruby-forum.com/t/gem-install-getopt-problem/48311/5 "2005-11-18T21:21:07Z")

</div>

Daniel B. wrote:

> > > File not found: lib  
> > > itself.
> 
> Whoopsie. I messed up the gemspec (fixed now). I’ll upload a new gem  
> shortly.
> 
> Dan

Thanks. Looking forward to trying getopt.
