# Can't find Gem

**URL:** <https://rubytalk.org/t/cant-find-gem/55889>\
**Category:** ruby-talk\
**Created:** [21 October 2009 05:30 UTC](https://rubytalk.org/t/cant-find-gem/55889 "2009-10-21T05:30:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Schneeman](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@Richard\_Schneeman](https://rubytalk.org/u/Richard_Schneeman)\
**Post date:** [21 October 2009 05:30 UTC](https://rubytalk.org/t/cant-find-gem/55889/1 "2009-10-21T05:30:21Z")

</div>

I recently installed ruby 1.8.7 and rubygems 1.3.5. Right now i'm trying  
to use the ruby-debug gem, but when i

script/server --debugger

i get the error:

You need to install ruby-debug to run the server in debugging mode. With  
gems, use 'gem install ruby-debug'

Even after I have run sudo gem install ruby-debug multiple times. So i  
checked my gem environment:

RubyGems Environment:  
&nbsp;&nbsp;- RUBYGEMS VERSION: 1.3.5  
&nbsp;&nbsp;- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin10.0.0]  
&nbsp;&nbsp;- INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8  
&nbsp;&nbsp;- RUBY EXECUTABLE: /usr/local/bin/ruby  
&nbsp;&nbsp;- EXECUTABLE DIRECTORY: /usr/local/bin  
&nbsp;&nbsp;- RUBYGEMS PLATFORMS:  
&nbsp;&nbsp;&nbsp;&nbsp;- ruby  
&nbsp;&nbsp;&nbsp;&nbsp;- x86-darwin-10  
&nbsp;&nbsp;- GEM PATHS:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- /usr/local/lib/ruby/gems/1.8  
&nbsp;&nbsp;- GEM CONFIGURATION:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :update\_sources =\> true  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :verbose =\> true  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :benchmark =\> false  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :backtrace =\> false  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :bulk\_threshold =\> 1000  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- :sources =\> ["[http://gems.rubyforge.org](http://gems.rubyforge.org)",  
"[http://gems.rubyonrails.org](http://gems.rubyonrails.org)", "[http://gems.rubyonrails.org](http://gems.rubyonrails.org)",  
"[http://gems.github.com](http://gems.github.com)", "[http://gems.github.com](http://gems.github.com)"]  
&nbsp;&nbsp;- REMOTE SOURCES:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [http://gems.rubyforge.org](http://gems.rubyforge.org)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [http://gems.rubyonrails.org](http://gems.rubyonrails.org)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [http://gems.rubyonrails.org](http://gems.rubyonrails.org)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [http://gems.github.com](http://gems.github.com)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- [http://gems.github.com](http://gems.github.com)

I checke in /usr/local/lib/ruby/gems/1.8 and sure enough i have  
ruby-debug correctly installed but still not recognized when i try to  
start my server. I also added this to my .bashrc to make sure:

export GEM\_HOME=/usr/local/lib/ruby/gems/1.8  
export GEM\_PATH=/usr/local/lib/ruby/gems/1.8

Even so, i'm still stuck. I'm fairly certain i've got multiple versions  
of rubygems. Even so on the surface it looks like everything is setup  
and in its correct place, but still not working. Does anyone have any  
additional commands or troubleshooting i can run?

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
