Unable to install Gems with RubyGems on Intel OSX with DarwinPorts

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: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

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?

···

--
Practical_Guile << http://practicalguile.com
Clever::Tagline::Pending

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).

[1]: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/205011

-- Daniel

···

On Jul 30, 2006, at 9:53 PM, Douglas Tan 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:

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

···

On 7/31/06, Daniel Harple <dharple@generalconsumption.org> wrote:

On Jul 30, 2006, at 9:53 PM, Douglas Tan 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).

[1]: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/205011

-- Daniel

--
Practical_Guile << http://practicalguile.com
Clever::Tagline::Pending