[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

RubyCocoa problem on Mac OS X

Human Dunnil

7/14/2006 4:48:00 PM

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

2 Answers

pere.noel

7/14/2006 4:59:00 PM

0

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.

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...
--
une bévue

Logan Capaldo

7/14/2006 5:11:00 PM

0


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
> 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
>

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