# Gem install problem

**URL:** <https://www.ruby-forum.com/t/gem-install-problem/157844>\
**Category:** Rails\
**Created:** [January 15, 2009, 10:25pm UTC](https://www.ruby-forum.com/t/gem-install-problem/157844 "2009-01-15T22:25:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![neridaj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f19dbf/32.png) [@neridaj](https://www.ruby-forum.com/u/neridaj)\
**Post date:** [January 15, 2009, 10:25pm UTC](https://www.ruby-forum.com/t/gem-install-problem/157844/1 "2009-01-15T22:25:08Z")

</div>

Hello,

I’m following Dan Benjamin’s install tutorial and got stuck at the gem  
install. It looks like it installed successfully but the gem command  
is not recognized. I located another rubygems install from macports at  
“/opt/local/var/macports/sources/rsync.macports.org/release/ports/ruby/  
rb-rubygems/” and tried to do a port uninstall and got “Error: port  
uninstall failed: Registry error: rubygems not registered as  
installed.” Any help would be appreciated.

Successfully built RubyGem  
Name: sources  
Version: 0.0.1  
File: sources-0.0.1.gem  
Removing old RubyGems RDoc and ri…  
Installing rubygems-0.9.2 ri…  
Installing rubygems-0.9.2 rdoc…

As of RubyGems 0.8.0, library stubs are no longer needed.  
Searching $LOAD\_PATH for stubs to optionally delete (may take a  
while)…  
…done.  
No library stubs found.

$ cd …  
$ sudo gem install rails --include-dependencies  
sudo: gem: command not found

---

<div class="post-metadata">

**Author:** ![neridaj](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/f19dbf/32.png) [@neridaj](https://www.ruby-forum.com/u/neridaj)\
**Post date:** [January 15, 2009, 10:35pm UTC](https://www.ruby-forum.com/t/gem-install-problem/157844/2 "2009-01-15T22:35:42Z")

</div>

On Thu, Jan 15, 2009 at 3:50 PM, neridaj [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> installed." Any help would be appreciated.  
> I think that the path above is just the sources that MacPorts knows  
> about  
> for RubyGems. If RubyGems were installed via MacPorts and /opt/local/bin  
> were on your $PATH, you could use the gem command.

> while)…  
> …done.  
> No library stubs found.

That’s quite an old release of RubyGems. The latest is 1.3.1. Maybe you  
should remove anything that was installed as part of 0.9.2 and try again  
with the latest release.

Regards,  
Craig
