Forum: Ruby RubyObjC rake failed

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2007-04-07 07:55
(Received via mailing list)
Hey all !

after downloading and installing "RubyObjC. A Ruby/Objective-C bridge."
<http://www.rubyobjc.com/>

i did the simplest try-out "myapp" and rake failed, see trace below :

------------------------------------------------------------------------
------------------------------------------------------------------------
~/work/RubyObjC/myapp%> rake --trace
(in /Users/yt/work/RubyObjC/myapp)
** Invoke default (first_time)
** Invoke app (first_time)
** Invoke executable (first_time)
** Invoke RubyObjC.app/Contents/MacOS (first_time, not_needed)
** Invoke RubyObjC.app/Contents/MacOS/RubyObjC (first_time)
** Invoke
/opt/local/lib/ruby/gems/1.8/gems/RubyObjC-0.3.0/lib/rake/../rubyobjcapp
(first_time, not_needed)
** Execute RubyObjC.app/Contents/MacOS/RubyObjC
rake aborted!
wrong number of arguments (3 for 2)
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:725:in
`fu_check_options'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:725:in `sh'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:812:in `sh'
/opt/local/lib/ruby/gems/1.8/gems/RubyObjC-0.3.0/lib/rake/cocoa.rb:103:i
n `initialize'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `call'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in
`execute'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in
`execute'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in `invoke'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in
`synchronize'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in
`invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `send'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in
`invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in
`synchronize'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in
`invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `send'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in
`invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in
`synchronize'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:in
`invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `send'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:in
`invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in `invoke'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in
`synchronize'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in `invoke'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
/opt/local/bin/rake:16:in `load'
/opt/local/bin/rake:16
~/work/RubyObjC/myapp%>
------------------------------------------------------------------------
------------------------------------------------------------------------


i get about the same with one of the samples :

------------------------------------------------------------------------
------------------------------------------------------------------------
~/work/RubyObjC/samples/maildemo%> rake --trace
(in /Users/yt/work/RubyObjC/samples/maildemo)
rake aborted!
Don't know how to build task 'default'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1449:in `[]'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:455:in `[]'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `each'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in `run'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
/opt/local/bin/rake:16:in `load'
/opt/local/bin/rake:16
------------------------------------------------------------------------
------------------------------------------------------------------------

as far as i understand this is due to rake not RubyObjC.

i think i should upgrade rake ???

my ruby version is :
ruby 1.8.6 (2007-03-13 patchlevel 0) [powerpc-darwin8.9.0]

Mac OS X 10.4.9
Phillip Gawlowski (Guest)
on 2007-04-07 08:15
(Received via mailing list)
Une BĂ©vue wrote:

>
> as far as i understand this is due to rake not RubyObjC.
>
> i think i should upgrade rake ???

I think, you should take a look into the documentation:
http://www.rubyobjc.com/doc/files/USAGE.html

rake run seems to do the magic with this thing. I can't confirm this, as
I don't own a Mac.

--
Phillip "CynicalRyan" Gawlowski
http://cynicalryan.110mb.com/

Rule of Open-Source Programming #4:

If you don't work on your project, chances are that no one will.
unknown (Guest)
on 2007-04-07 10:41
(Received via mailing list)
Phillip Gawlowski <cmdjackryan@googlemail.com> wrote:

>
> I think, you should take a look into the documentation:
> http://www.rubyobjc.com/doc/files/USAGE.html

yes thanks, i did follow that :
> Rake Tasks
>
> To build the application, type "rake"; to run it, use "rake run".

> rake run seems to do the magic with this thing. I can't confirm this, as
> I don't own a Mac.

....
8a7d7a2337de20152672ba74a893599f?d=identicon&s=25 Aaron S. (warhero)
on 2007-04-08 21:46
unknown wrote:
> Phillip Gawlowski <cmdjackryan@googlemail.com> wrote:
>
>>
>> I think, you should take a look into the documentation:
>> http://www.rubyobjc.com/doc/files/USAGE.html
>
> yes thanks, i did follow that :
>> Rake Tasks
>>
>> To build the application, type "rake"; to run it, use "rake run".
>
>> rake run seems to do the magic with this thing. I can't confirm this, as
>> I don't own a Mac.
>
> ....

As a side note, RubyObjc stems from RubyCocoa. RubyCocoa is completely
free, RubyObjC is somewhat free - no commercial use. I was confused by
the two at first.. RubyObjC just adds a few more tools to the arsenol..
like rake tasks, etc..
This topic is locked and can not be replied to.