# OS X RubyGems installation question

**URL:** <https://www.ruby-forum.com/t/os-x-rubygems-installation-question/85449>\
**Category:** Ruby\
**Created:** [February 13, 2007, 5:37pm UTC](https://www.ruby-forum.com/t/os-x-rubygems-installation-question/85449 "2007-02-13T17:37:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![waddilove](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Post date:** [February 13, 2007, 5:37pm UTC](https://www.ruby-forum.com/t/os-x-rubygems-installation-question/85449/1 "2007-02-13T17:37:38Z")

</div>

Hi, I am just migrating from one OS X system to a new MBP 🙂

I’m trying the rubygem installation process, but when I run:  
sudo ruby setup.rb  
from rubygems-0.9.2 I get:

setup.rb:52:in `require’: no such file to load – rbconfig (LoadError)  
from setup.rb:52

There are no ruby options set in ENV, and the Ruby configuration is as  
built by the OS X installation.

One additional factor, I choose to use the Apple Migration assistant. It  
worked like a charm bringing everything across in the users directories

- including hidden items. I’m wondering if this is part of the problem.

I’m hoping some kind person will point out the error of my ways. Many  
thanks

Jonathan

---

<div class="post-metadata">

**Author:** ![waddilove](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Post date:** [February 13, 2007, 6:01pm UTC](https://www.ruby-forum.com/t/os-x-rubygems-installation-question/85449/2 "2007-02-13T18:01:25Z")

</div>

I’ve never tried intalling updated Ruby versions or RubyGems _over_  
the OS X install. Perhaps you should consider what I think is a  
cleaner solution – DarwinPorts ([http://darwinports.opendarwin.org/](http://darwinports.opendarwin.org/)).

Once you install DarwinPorts you can then install other software  
(e.g., Ruby 1.8.5 very easily. And then you can install RubyGems.  
Everything goes into /opt/local, thereby keeping your standard OS X  
install “clean”.

Then it’s just a matter of adjusting your PATH so it picks the ruby,  
irb, etc. out of /opt/local/bin.

Eric

====

Are you interested in on-site Ruby training that’s been highly  
reviewed by former students? [http://LearnRuby.com](http://LearnRuby.com)

---

<div class="post-metadata">

**Author:** ![waddilove](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Post date:** [February 13, 2007, 7:39pm UTC](https://www.ruby-forum.com/t/os-x-rubygems-installation-question/85449/3 "2007-02-13T19:39:34Z")

</div>

On Feb 13, 2007, at 08:37, Jonathan W. wrote:

> Hi, I am just migrating from one OS X system to a new MBP 🙂
> 
> I’m trying the rubygem installation process, but when I run:  
> sudo ruby setup.rb  
> from rubygems-0.9.2 I get:
> 
> setup.rb:52:in `require’: no such file to load – rbconfig  
> (LoadError)  
> from setup.rb:52

rbconfig is located in /path/to/ruby/lib/1.8//

where is your ruby installed?

> There are no ruby options set in ENV, and the Ruby configuration is as  
> built by the OS X installation.
> 
> One additional factor, I choose to use the Apple Migration  
> assistant. It  
> worked like a charm bringing everything across in the users  
> directories
> 
> - including hidden items. I’m wondering if this is part of the  
> problem.

Possibly it missed something.

---

<div class="post-metadata">

**Author:** ![waddilove](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Post date:** [February 13, 2007, 8:06pm UTC](https://www.ruby-forum.com/t/os-x-rubygems-installation-question/85449/4 "2007-02-13T20:06:12Z")

</div>

Eric,

Thank you very much for the suggestions. I tried the Darwin Ports  
approach but it failed to install Ruby. So I followed the HiveLogoc  
instructions to install Ruby and then Ruby GEM and I’m now running OK.

I hope all of this will go away when Leopard ships and we can enjoy a  
pre-installed Ruby GEM environment.

Many thanks, Jonathan

---

<div class="post-metadata">

**Author:** ![waddilove](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b5ac83/32.png) [@waddilove](https://www.ruby-forum.com/u/waddilove)\
**Post date:** [February 13, 2007, 8:24pm UTC](https://www.ruby-forum.com/t/os-x-rubygems-installation-question/85449/5 "2007-02-13T20:24:42Z")

</div>

Am 13.02.2007 um 20:06 schrieb Jonathan W.:

> I hope all of this will go away when Leopard ships and we can enjoy a  
> pre-installed Ruby GEM environment.
> 
> Many thanks, Jonathan
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Jonathan,

Did you checkout Locomotive ([http://locomotive.raaum.org/bundles/](http://locomotive.raaum.org/bundles/)  
index.html)? It’s a nice package that comes with a very complete set  
of standard bundles including rubygems.

Helge
