# RubyCocoa problem on Mac OS X

**URL:** <https://www.ruby-forum.com/t/rubycocoa-problem-on-mac-os-x/98431>\
**Category:** Ruby\
**Created:** [July 14, 2006, 6:50pm UTC](https://www.ruby-forum.com/t/rubycocoa-problem-on-mac-os-x/98431 "2006-07-14T18:50:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Human\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/edb3f5/32.png) [@Human\_D](https://www.ruby-forum.com/u/Human_D)\
**Post date:** [July 14, 2006, 6:50pm UTC](https://www.ruby-forum.com/t/rubycocoa-problem-on-mac-os-x/98431/1 "2006-07-14T18:50:33Z")

</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  
from (irb):1:in `require’  
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:** ![Human\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/edb3f5/32.png) [@Human\_D](https://www.ruby-forum.com/u/Human_D)\
**Post date:** [July 14, 2006, 7:03pm UTC](https://www.ruby-forum.com/t/rubycocoa-problem-on-mac-os-x/98431/2 "2006-07-14T19:03:37Z")

</div>

Human D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

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

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…

---

<div class="post-metadata">

**Author:** ![Human\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/edb3f5/32.png) [@Human\_D](https://www.ruby-forum.com/u/Human_D)\
**Post date:** [July 14, 2006, 7:14pm UTC](https://www.ruby-forum.com/t/rubycocoa-problem-on-mac-os-x/98431/3 "2006-07-14T19:14:25Z")

</div>

On Jul 14, 2006, at 12:47 PM, Human D. wrote:

> 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

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
