RubyObjC rake failed

U

Une Bévue

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
 
P

Phillip Gawlowski

Une said:
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.
 
A

Aaron Smith

unknown said:
yes thanks, i did follow that :


....

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top