[MacRuby-devel] hotcocoa - can't find executable...how to find it

Dr Nic Williams drnicwilliams at gmail.com
Fri Jan 30 01:32:59 PST 2009


Try: $LOAD_PATH.unshift
File.join(OSX::NSBundle.mainBundle.privateFrameworksPath,
'MacRuby.framework/Versions/Current/usr/lib/ruby/1.9.0')

(from Eloy a few days ago)

On Fri, Jan 30, 2009 at 6:27 PM, Tim Rand <timrandg at gmail.com> wrote:
>>> $:.each{|path| puts path + "/" + "hotcocoa.rb" if File.exists?(path + "/"
>>> + "hotcocoa.rb")}
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/hotcocoa.rb
>
> $: is a ruby environmental variable for an array of all the paths that ruby
> looks at to require a file.
> Another useful one to know is $", which holds the names of all currently
> loaded external files.
>
> I would imagine that somehow the path setting has been altered or you
> accidentally moved hotcocoa to a location not included in the $: set.
>
> I am frustrated that macgem is not functioning too. There are a lot of
> possible reasons for it, but the most likely seems to be that many of the
> gems for older versions of ruby need to be updated to work with 1.9, the
> version that macruby is based on. Alternatively, failure of any given gem to
> load could be due to macruby being under development and yet incomplete.
>
> For me getting certain gems like sqlite3 to funciton with macruby is a
> necessity.
>
> Perhaps wonderful Laraunt or someone else could share some of his/her wisdom
> on this issue of why many gems don't work, and if there is a plan for how to
> fix it. Otherwise, I am going to keep plugging away at it in my spare
> time--maybe around 2050 or so I will solve it. But I will solve it
> eventually, because I love the idea of macruby and I love my old gem library
> and I can't live without either.
> Tim
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
>



-- 
Dr Nic Williams
iPhone and Rails consultants - http://mocra.com
Fun with iPhone/Ruby/Rails/Javascript - http://drnicwilliams.com
* Surf Report for iPhone - http://mocra.com/projects/surfreport/ *


More information about the MacRuby-devel mailing list