Unable to install Gems with RubyGems on Intel OSX with Darwi

I followed Duncan Davidson’s Sandboxing Rails with Darwin Ports guide
and
everything went fine up till the part where I had to install gems using
gem
install. I would get this stacktrace:

Attempting local installation of ‘rake’
Local gem file not found: rake*.gem
Attempting remote installation of ‘rake’
/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:inactivate’
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:inrequire_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:insource_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:inexecute’
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:ininvoke’
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:inrun’
from
/opt/local/lib/ruby/vendor_ruby/1.8/rubygems/gem_runner.rb:13:in
`run’
from /opt/local/bin/gem:17

Adding GEM_PATH and GEM_HOME variables to ~/.profile didnt work either:

export PATH=/opt/local/bin:/opt/local/sbin:/opt/local/apache2/bin:$PATH
export RUBYLIB=/opt/local/lib/ruby/site_ruby/1.8:/opt/local/lib/ruby/1.8
export GEM_PATH=/opt/local/lib/ruby/gems/1.8
export GEM_HOME=/opt/local/lib/ruby/gems/1.8

Darwin Ports is installing ports in /opt/local/
Is there something I’m missing here?

On Jul 30, 2006, at 9:53 PM, Douglas T. wrote:

I followed Duncan Davidson’s Sandboxing Rails with Darwin Ports
guide and
everything went fine up till the part where I had to install gems
using gem
install. I would get this stacktrace:

There was a very recent thread on this topic 1. I suggest
installing gems /not/ through darwinports. You can download gems at
http://rubyforge.org/projects/rubygems/. Make sure you run setup.rb
using the correct ruby (/opt/local/bin/ruby).

– Daniel

yeah, following the steps to manually install the sources gem did the
trick.