# RubyCocoa problem on Mac OS X

**URL:** <https://rubytalk.org/t/rubycocoa-problem-on-mac-os-x/28968>\
**Category:** ruby-talk\
**Created:** [14 July 2006 16:47 UTC](https://rubytalk.org/t/rubycocoa-problem-on-mac-os-x/28968 "2006-07-14T16:47:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Houman\_Dunnil](https://avatars.discourse-cdn.com/v4/letter/h/da6949/32.png) [@Houman\_Dunnil](https://rubytalk.org/u/Houman_Dunnil)\
**Post date:** [14 July 2006 16:47 UTC](https://rubytalk.org/t/rubycocoa-problem-on-mac-os-x/28968/1 "2006-07-14T16:47:32Z")

</div>

Hello,  
I downloaded the binary version of RubyCocoa  
(RubyCocoa-0.4.2-tiger.dmg) and installed it with its default options.

But seems there is a problem, because I can't load it!

irb(main):001:0\> require 'osx/cocoa'  
LoadError: no such file to load -- osx/cocoa  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from (irb):1:in `require'  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from (irb):1

I checked the package content and checked my system too, everything is  
in place, but I can't load the library.

ruby 1.8.4 (2005-12-24) [i686-darwin8.5.2]  
Mac OS X Version 10.4.7

Thank you all in advance,  
- Dunnil

---

<div class="post-metadata">

**Author:** ![Pere\_Noel1](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@Pere\_Noel1](https://rubytalk.org/u/Pere_Noel1)\
**Post date:** [14 July 2006 17:00 UTC](https://rubytalk.org/t/rubycocoa-problem-on-mac-os-x/28968/2 "2006-07-14T17:00:06Z")

</div>

if i remeber well i had months ago something like that...

i solved it using DarwinPorts installing Ruby, RubyCocoa and RubyGems  
correctly.

before that i was unable to build a rubycocoa app making use of some gem  
package...

> **···**
>
> Human Dunnil \<h.dunnil@gmail.com\> wrote:
> 
> > I downloaded the binary version of RubyCocoa  
> > (RubyCocoa-0.4.2-tiger.dmg) and installed it with its default options.
> 
> --  
> une bévue

---

<div class="post-metadata">

**Author:** ![Logan\_Capaldo](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@Logan\_Capaldo](https://rubytalk.org/u/Logan_Capaldo)\
**Post date:** [14 July 2006 17:11 UTC](https://rubytalk.org/t/rubycocoa-problem-on-mac-os-x/28968/3 "2006-07-14T17:11:20Z")

</div>

The RubyCocoa packages for whatever reason use the Apple supplied ruby. You seem to have installed a compiled from sourc ruby (or installed it perhaps from fink or darwinports).

try it with

/usr/bin/irb or /usr/bin/ruby

> **···**
>
> On Jul 14, 2006, at 12:47 PM, Human Dunnil wrote:
> 
> > Hello,  
> > I downloaded the binary version of RubyCocoa  
> > (RubyCocoa-0.4.2-tiger.dmg) and installed it with its default options.
> > 
> > But seems there is a problem, because I can't load it!
> > 
> > irb(main):001:0\> require 'osx/cocoa'  
> > LoadError: no such file to load -- osx/cocoa  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from (irb):1:in `require'  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;from (irb):1
> > 
> > I checked the package content and checked my system too, everything is  
> > in place, but I can't load the library.
> > 
> > ruby 1.8.4 (2005-12-24) [i686-darwin8.5.2]  
> > Mac OS X Version 10.4.7
> > 
> > Thank you all in advance,  
> > - Dunnil
