# Rubygems configuration

**URL:** <https://www.ruby-forum.com/t/rubygems-configuration/100588>\
**Category:** Ruby\
**Created:** [July 30, 2006, 4:52pm UTC](https://www.ruby-forum.com/t/rubygems-configuration/100588 "2006-07-30T16:52:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@mickey](https://www.ruby-forum.com/u/mickey)\
**Post date:** [July 30, 2006, 4:52pm UTC](https://www.ruby-forum.com/t/rubygems-configuration/100588/1 "2006-07-30T16:52:25Z")

</div>

I used darwin ports to install ruby, rubygems, and apparently a few  
dependencies.

Whenever I run the following to continue in my quest for a working  
ruby/rails/mysql playground … i get the following … what may I  
have missed?

razor:~ dhaskew$ sudo gem install rails  
Attempting local installation of ‘rails’  
Local gem file not found: rails\*.gem  
Attempting remote installation of ‘rails’  
/opt/local/lib/ruby/vendor\_ruby/1.8/rubygems.rb:204:in  
`report_activate_error': Could not find RubyGem sources (> 0.0.0) (Gem::LoadError) from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:141:in`activate’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems.rb:37:in  
`require_gem_with_options' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:31:in`require\_gem’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/  
remote\_installer.rb:425:in `sources' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ remote_installer.rb:435:in`source\_index\_hash’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/  
remote\_installer.rb:399:in `install' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ gem_commands.rb:195:in`execute’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/  
gem\_commands.rb:153:in `execute' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/command.rb: 49:in`invoke’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/  
cmd\_manager.rb:94:in `process_args' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ cmd_manager.rb:67:in`run’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/  
gem\_runner.rb:13:in `run’  
from /opt/local/bin/gem:17

---

<div class="post-metadata">

**Author:** ![mickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@mickey](https://www.ruby-forum.com/u/mickey)\
**Post date:** [July 30, 2006, 5:08pm UTC](https://www.ruby-forum.com/t/rubygems-configuration/100588/2 "2006-07-30T17:08:26Z")

</div>

On 7/30/06, David A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Attempting local installation of ‘rails’  
> Local gem file not found: rails\*.gem  
> Attempting remote installation of ‘rails’  
> /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems.rb:204:in  
> `report\_activate\_error’: Could not find RubyGem sources (\> 0.0.0)  
> (Gem::LoadError)

Hi. It looks to me like something went wrong with the darwin ports  
RubyGems install. You might want to remove and reinstall that. If  
you type “gem list”, you should see a gem called “sources”, which  
tells RubyGems where to download gems from. It’s a part of the  
RubyGems system, so it’s not optional and should always be installed  
along with the RubyGems framework.

–  
Chad F.  
[http://chadfowler.com](http://chadfowler.com)  
[http://pragmaticprogrammer.com/titles/fr\_rr/](http://pragmaticprogrammer.com/titles/fr_rr/) (Rails Recipes)  
[http://pragmaticprogrammer.com/titles/mjwti/](http://pragmaticprogrammer.com/titles/mjwti/) (My Job Went to India,  
and All I Got Was This Lousy Book)  
[http://rubycentral.org](http://rubycentral.org)  
[http://rubygarden.org](http://rubygarden.org)  
[http://rubygems.rubyforge.org](http://rubygems.rubyforge.org) (over four million gems served!)

---

<div class="post-metadata">

**Author:** ![mickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@mickey](https://www.ruby-forum.com/u/mickey)\
**Post date:** [July 30, 2006, 5:58pm UTC](https://www.ruby-forum.com/t/rubygems-configuration/100588/3 "2006-07-30T17:58:09Z")

</div>

> Hi. It looks to me like something went wrong with the darwin ports  
> RubyGems install. You might want to remove and reinstall that. If  
> you type “gem list”, you should see a gem called “sources”, which  
> tells RubyGems where to download gems from. It’s a part of the  
> RubyGems system, so it’s not optional and should always be installed  
> along with the RubyGems framework.

razor:~ dhaskew$ sudo port -v uninstall rb-rubygems  
—\> Deactivating rb-rubygems 0.8.11\_0  
—\> Uninstalling rb-rubygems 0.8.11\_0  
—\> Uninstall is removing rb-rubygems from the port registry.  
razor:~ dhaskew$ sudo port -v install rb-rubygems  
—\> Unpacking tgz archive for rb-rubygems 0.8.11\_0  
—\> Extracting rb-rubygems-0.8.11\_0.i386.tgz  
./  
./+COMMENT  
./+CONTENTS  
./+DESC  
./+PORTFILE  
./+STATE  
./opt/  
./opt/local/  
./opt/local/bin/  
./opt/local/bin/gem  
./opt/local/bin/gem\_mirror  
./opt/local/bin/gem\_server  
./opt/local/bin/gemwhich  
./opt/local/bin/generate\_yaml\_index.rb  
./opt/local/bin/update\_rubygems  
./opt/local/lib/  
./opt/local/lib/ruby/  
./opt/local/lib/ruby/gems/  
./opt/local/lib/ruby/gems/cache/  
./opt/local/lib/ruby/gems/cache/sources-0.0.1.gem  
./opt/local/lib/ruby/gems/gems/  
./opt/local/lib/ruby/gems/gems/sources-0.0.1/  
./opt/local/lib/ruby/gems/gems/sources-0.0.1/lib/  
./opt/local/lib/ruby/gems/gems/sources-0.0.1/lib/sources.rb  
./opt/local/lib/ruby/gems/specifications/  
./opt/local/lib/ruby/gems/specifications/sources-0.0.1.gemspec  
./opt/local/lib/ruby/vendor\_ruby/  
./opt/local/lib/ruby/vendor\_ruby/1.8/  
./opt/local/lib/ruby/vendor\_ruby/1.8/gemconfigure.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/builder.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/cmd\_manager.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/command.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/config\_file.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/custom\_require.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/dependency\_list.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/deployment.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/doc\_manager.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/format.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/gem\_commands.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/gem\_openssl.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/gem\_runner.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/installer.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/loadpath\_manager.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/old\_format.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/open-uri.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/package.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/remote\_installer.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/rubygems\_version.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/security.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/source\_index.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/specification.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/timer.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/user\_interaction.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/validator.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/version.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/rubygems.rb  
./opt/local/lib/ruby/vendor\_ruby/1.8/ubygems.rb  
./opt/local/share/  
./opt/local/share/doc/  
./opt/local/share/doc/rb-rubygems/  
./opt/local/share/doc/rb-rubygems/doc/  
./opt/local/share/doc/rb-rubygems/doc/doc.css  
./opt/local/share/doc/rb-rubygems/doc/makedoc.rb  
./opt/local/share/doc/rb-rubygems/examples/  
./opt/local/share/doc/rb-rubygems/examples/application/  
./opt/local/share/doc/rb-rubygems/examples/application/an-app.gemspec  
./opt/local/share/doc/rb-rubygems/examples/application/bin/  
./opt/local/share/doc/rb-rubygems/examples/application/bin/myapp  
./opt/local/share/doc/rb-rubygems/examples/application/lib/  
./opt/local/share/doc/rb-rubygems/examples/application/lib/  
somefunctionality.rb  
./opt/local/share/doc/rb-rubygems/gemspecs/  
./opt/local/share/doc/rb-rubygems/gemspecs/cgikit-1.1.0.gemspec  
./opt/local/share/doc/rb-rubygems/gemspecs/jabber4r.gemspec  
./opt/local/share/doc/rb-rubygems/gemspecs/linguistics.gemspec  
./opt/local/share/doc/rb-rubygems/gemspecs/ook.gemspec  
./opt/local/share/doc/rb-rubygems/gemspecs/progressbar.gemspec  
./opt/local/share/doc/rb-rubygems/gemspecs/README  
./opt/local/share/doc/rb-rubygems/gemspecs/redcloth.gemspec  
./opt/local/share/doc/rb-rubygems/gemspecs/rublog.gemspec  
./opt/local/share/doc/rb-rubygems/gemspecs/ruby-doom.gemspec  
./opt/local/share/doc/rb-rubygems/gemspecs/rubyjdwp.gemspec  
./opt/local/share/doc/rb-rubygems/gemspecs/statistics.gemspec  
./opt/local/share/doc/rb-rubygems/README  
—\> Archive rb-rubygems-0.8.11\_0.i386.tgz unpacked  
—\> Installing rb-rubygems 0.8.11\_0  
—\> Activating rb-rubygems 0.8.11\_0  
—\> Cleaning rb-rubygems  
—\> Removing workpath for rb-rubygems

… and then … in a new terminal

razor:~ dhaskew$ sudo gem install rails  
Attempting local installation of ‘rails’  
Local gem file not found: rails\*.gem  
Attempting remote installation of ‘rails’  
/opt/local/lib/ruby/vendor\_ruby/1.8/rubygems.rb:204:in  
`report_activate_error': Could not find RubyGem sources (> 0.0.0) (Gem::LoadError) from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:141:in`activate’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems.rb:37:in  
`require_gem_with_options' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems.rb:31:in`require\_gem’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/  
remote\_installer.rb:425:in `sources' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ remote_installer.rb:435:in`source\_index\_hash’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/  
remote\_installer.rb:399:in `install' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ gem_commands.rb:195:in`execute’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/  
gem\_commands.rb:153:in `execute' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/command.rb: 49:in`invoke’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/  
cmd\_manager.rb:94:in `process_args' from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ cmd_manager.rb:67:in`run’  
from /opt/local/lib/ruby/vendor\_ruby/1.8/rubygems/  
gem\_runner.rb:13:in `run’  
from /opt/local/bin/gem:17

- any other ideas?

-thanks

---

<div class="post-metadata">

**Author:** ![mickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@mickey](https://www.ruby-forum.com/u/mickey)\
**Post date:** [July 30, 2006, 6:14pm UTC](https://www.ruby-forum.com/t/rubygems-configuration/100588/4 "2006-07-30T18:14:07Z")

</div>

On Jul 30, 2006, at 12:05 PM, David A. wrote:

> drwxr-xr-x 2 root admin 68 Jul 30 03:13 gems  
> drwxr-xr-x 2 root admin 68 Jul 30 03:13 specifications  
> razor:/opt/local/lib/ruby/gems/1.8 dhaskew$ ls -l gems/  
> razor:/opt/local/lib/ruby/gems/1.8 dhaskew$

perhaps the gem was installed in the wrong place somehow?

razor:~ dhaskew$ sudo gem env gempath  
/opt/local/lib/ruby/gems/1.8  
razor:~ dhaskew$ cd /opt/local/lib/ruby/gems/  
razor:/opt/local/lib/ruby/gems dhaskew$ ls  
1.8 cache gems specifications  
razor:/opt/local/lib/ruby/gems dhaskew$ find . -name “_sources_”  
./cache/sources-0.0.1.gem  
./gems/sources-0.0.1  
./gems/sources-0.0.1/lib/sources.rb  
./specifications/sources-0.0.1.gemspec

---

<div class="post-metadata">

**Author:** ![mickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@mickey](https://www.ruby-forum.com/u/mickey)\
**Post date:** [July 30, 2006, 6:07pm UTC](https://www.ruby-forum.com/t/rubygems-configuration/100588/5 "2006-07-30T18:07:47Z")

</div>

On Jul 30, 2006, at 11:56 AM, David A. wrote:

> > Hi. It looks to me like something went wrong with the darwin ports  
> > RubyGems install. You might want to remove and reinstall that. If  
> > you type “gem list”, you should see a gem called “sources”, which  
> > tells RubyGems where to download gems from. It’s a part of the  
> > RubyGems system, so it’s not optional and should always be installed  
> > along with the RubyGems framework.

should there be a file in the gems directory then?

razor:/opt/local/lib/ruby/gems/1.8 dhaskew$ sudo gem env gempath  
/opt/local/lib/ruby/gems/1.8  
razor:/opt/local/lib/ruby/gems/1.8 dhaskew$ ls -al  
total 0  
drwxr-xr-x 6 root admin 204 Jul 30 03:13 .  
drwxr-xr-x 6 root admin 204 Jul 30 11:54 …  
drwxr-xr-x 2 root admin 68 Jul 30 03:13 cache  
drwxr-xr-x 2 root admin 68 Jul 30 03:13 doc  
drwxr-xr-x 2 root admin 68 Jul 30 03:13 gems  
drwxr-xr-x 2 root admin 68 Jul 30 03:13 specifications  
razor:/opt/local/lib/ruby/gems/1.8 dhaskew$ ls -l gems/  
razor:/opt/local/lib/ruby/gems/1.8 dhaskew$

---

<div class="post-metadata">

**Author:** ![mickey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@mickey](https://www.ruby-forum.com/u/mickey)\
**Post date:** [July 30, 2006, 6:17pm UTC](https://www.ruby-forum.com/t/rubygems-configuration/100588/6 "2006-07-30T18:17:47Z")

</div>

> ./cache/sources-0.0.1.gem  
> ./gems/sources-0.0.1  
> ./gems/sources-0.0.1/lib/sources.rb  
> ./specifications/sources-0.0.1.gemspec

razor:/opt/local/lib/ruby/gems dhaskew$ sudo gem install cache/  
sources-0.0.1.gem  
Attempting local installation of ‘cache/sources-0.0.1.gem’  
Successfully installed sources, version 0.0.1  
razor:/opt/local/lib/ruby/gems dhaskew$ ls  
1.8 cache gems specifications  
razor:/opt/local/lib/ruby/gems dhaskew$ ls -l  
total 0  
drwxr-xr-x 6 root admin 204 Jul 30 03:13 1.8  
drwxr-xr-x 3 root admin 102 Jul 30 11:54 cache  
drwxr-xr-x 3 root admin 102 Jul 30 11:54 gems  
drwxr-xr-x 3 root admin 102 Jul 30 11:54 specifications  
razor:/opt/local/lib/ruby/gems dhaskew$ cd 1.8/  
razor:/opt/local/lib/ruby/gems/1.8 dhaskew$ ls  
cache doc gems specifications  
razor:/opt/local/lib/ruby/gems/1.8 dhaskew$ ls -l gems/  
total 0  
drwxr-xr-x 3 root admin 102 Jul 30 12:12 sources-0.0.1  
razor:/opt/local/lib/ruby/gems/1.8 dhaskew$ ls  
cache doc gems specifications  
razor:/opt/local/lib/ruby/gems/1.8 dhaskew$

… above you can see where the gem was installed to by ports/  
rubygems initially

when I reinstalled it locally, it installed it somewhere different.  
now I can issue my commands

razor:~ dhaskew$ sudo gem list

\*\*\* LOCAL GEMS \*\*\*

sources (0.0.1)  
This package provides download sources for remote gem installation
