# Unable to install Gems with RubyGems on Intel OSX with Darwi

**URL:** <https://www.ruby-forum.com/t/unable-to-install-gems-with-rubygems-on-intel-osx-with-darwi/100637>\
**Category:** Ruby\
**Created:** [July 31, 2006, 3:56am UTC](https://www.ruby-forum.com/t/unable-to-install-gems-with-rubygems-on-intel-osx-with-darwi/100637 "2006-07-31T03:56:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Douglas\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@Douglas\_T](https://www.ruby-forum.com/u/Douglas_T)\
**Post date:** [July 31, 2006, 3:56am UTC](https://www.ruby-forum.com/t/unable-to-install-gems-with-rubygems-on-intel-osx-with-darwi/100637/1 "2006-07-31T03:56:05Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Douglas\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@Douglas\_T](https://www.ruby-forum.com/u/Douglas_T)\
**Post date:** [July 31, 2006, 4:02am UTC](https://www.ruby-forum.com/t/unable-to-install-gems-with-rubygems-on-intel-osx-with-darwi/100637/2 "2006-07-31T04:02:16Z")

</div>

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](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/205011). I suggest  
installing gems /not/ through darwinports. You can download gems at  
[http://rubyforge.org/projects/rubygems/](http://rubyforge.org/projects/rubygems/). Make sure you run setup.rb  
using the correct ruby (/opt/local/bin/ruby).

– Daniel

---

<div class="post-metadata">

**Author:** ![Douglas\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/ecccb3/32.png) [@Douglas\_T](https://www.ruby-forum.com/u/Douglas_T)\
**Post date:** [July 31, 2006, 3:26pm UTC](https://www.ruby-forum.com/t/unable-to-install-gems-with-rubygems-on-intel-osx-with-darwi/100637/3 "2006-07-31T15:26:13Z")

</div>

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