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?