Beginner - Rake problem

6 views
Skip to first unread message

jason

unread,
May 20, 2011, 3:59:15 PM5/20/11
to ProjectSprouts
Hi all,

I'm trying to run flashsdk (1.0.27.pre), but can't even get the
example program working (sprout-as3 TestProject).

OS: Linux
Ruby: 1.9.2
Rake: 0.9.0

I get the following rake error:

[localhost TestProject]$ rake --trace
rake aborted!undefined method `file' for #<FlashSDK::MXMLC:0x8ca07bc>
/usr/lib/ruby/gems/1.9.1/gems/sprout-1.1.11.pre/lib/sprout/executable/
base.rb:421:in`create_outer_task'
/usr/lib/ruby/gems/1.9.1/gems/sprout-1.1.11.pre/lib/sprout/executable/
base.rb:282:in `to_rake'
/usr/lib/ruby/gems/1.9.1/gems/flashsdk-1.0.27.pre/lib/flashsdk/
mxmlc.rb:150:in `mxmlc'
/home/user/TestProject/rakefile.rb:30:in `<top (required)>'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.9.0/lib/rake/rake_module.rb:25:in
`load'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.9.0/lib/rake/rake_module.rb:25:in
`load_rakefile'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.9.0/lib/rake/application.rb:
495:in `raw_load_rakefile'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.9.0/lib/rake/application.rb:78:in
`block in load_rakefile'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.9.0/lib/rake/application.rb:
129:in `standard_exception_handling'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.9.0/lib/rake/application.rb:77:in
`load_rakefile'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.9.0/lib/rake/application.rb:61:in
`block in run'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.9.0/lib/rake/application.rb:
129:in `standard_exception_handling'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.9.0/lib/rake/application.rb:59:in
`run'
/usr/lib/ruby/gems/1.9.1/gems/rake-0.9.0/bin/rake:31:in `<top
(required)>'/usr/bin/rake:19:in `load'/usr/bin/rake:19:in `<main>'

I'm not particularly experienced with rake or ruby in general. Any
hints?
Sorry if it's obvious, I've been at it for quite a while..
Thanks in advance.

Duncan Beevers

unread,
May 23, 2011, 10:11:39 PM5/23/11
to project...@googlegroups.com
I'm not sure about the full extent of what's going on there, but those
look like ruby 1.9.1 gem paths.

You can use the "gem env" command to see where your ruby installation
will look for gems at, and see if what is reported there matches your
expectations.

> --
> You received this message because you are subscribed to the Google Groups
> "ProjectSprouts" group.
> To post to this group, send email to project...@googlegroups.com
> To unsubscribe from this group, send email to
> projectsprout...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/projectsprouts?hl=en
>
> For other info you can visit our project at: http://projectsprouts.org, or
> on Github at: http://github.com/lukebayes/project-sprouts

David Linse

unread,
May 24, 2011, 5:59:14 AM5/24/11
to project...@googlegroups.com
i run into the same issue..
it looks like there is no "real" version 1.9.2 for unix .. ?
--
--------------------------------------------------
David Linse
-- freelancing web-developer (retired) --

Jessnerstr. 47
10247 Berlin

phone:    +49 (0) 30 85 71 83 97
mobile:    +49 (0) 179 79 54 469
e-mail:    david...@8ball-media.de
web:        http://8ball-media.de

___
Heute schon was Gutes getan? - www.welpennothilfe.de

Justin Clarke

unread,
May 24, 2011, 6:17:37 AM5/24/11
to project...@googlegroups.com
This error is caused by the new version of Rake as I mentioned here: http://groups.google.com/group/projectsprouts/browse_thread/thread/c8b7e338c3cd2073?hl=en

Use Rake 0.8.7 and it should work fine.

jason

unread,
May 25, 2011, 3:52:37 PM5/25/11
to ProjectSprouts
Thanks everyone, downgrading to 0.8.7 fixed it. For the record, my
distro's ruby1.9.2 package (and I assume at least a few others)
decided to install ruby 1.9.2 over 1.9.1 instead of in it's own
folder, I assume for either compatibility's sake or laziness :)

On May 24, 6:17 am, Justin Clarke <jus...@digitalally.com.au> wrote:
> This error is caused by the new version of Rake as I mentioned here:http://groups.google.com/group/projectsprouts/browse_thread/thread/c8...
>
> Use Rake 0.8.7 and it should work fine.
>
> On 24/05/11 7:59 PM, David Linse wrote:
>
>
>
>
>
>
>
> > i run into the same issue..
> > it looks like there is no "real" version 1.9.2 for unix .. ?
>
> > On Tue, May 24, 2011 at 4:11 AM, Duncan Beevers <dun...@dweebd.com
> > <mailto:dun...@dweebd.com>> wrote:
>
> >     I'm not sure about the full extent of what's going on there, but those
> >     look like ruby 1.9.1 gem paths.
>
> >     You can use the "gem env" command to see where your ruby installation
> >     will look for gems at, and see if what is reported there matches your
> >     expectations.
>
> >     On 5/20/11, jason <jasonkobr...@gmail.com
> >     <mailto:project...@googlegroups.com>
> >     > To unsubscribe from this group, send email to
> >     > projectsprout...@googlegroups.com
> >     <mailto:projectsprout...@googlegroups.com>
> >     > For more options, visit this group at
> >     >http://groups.google.com/group/projectsprouts?hl=en
>
> >     > For other info you can visit our project at:
> >    http://projectsprouts.org, or
> >     > on Github at:http://github.com/lukebayes/project-sprouts
>
> >     --
> >     You received this message because you are subscribed to the Google
> >     Groups "ProjectSprouts" group.
> >     To post to this group, send email to
> >     project...@googlegroups.com
> >     <mailto:project...@googlegroups.com>
> >     To unsubscribe from this group, send email to
> >     projectsprout...@googlegroups.com
> >     <mailto:projectsprout...@googlegroups.com>
> >     For more options, visit this group at
> >    http://groups.google.com/group/projectsprouts?hl=en
>
> >     For other info you can visit our project at:
> >    http://projectsprouts.org, or on Github at:
> >    http://github.com/lukebayes/project-sprouts
>
> > --
> > --------------------------------------------------
> > David Linse
> > -- freelancing web-developer (retired) --
>
> > Jessnerstr. 47
> > 10247 Berlin
>
> > phone:    +49 (0) 30 85 71 83 97
> > mobile:    +49 (0) 179 79 54 469
> > e-mail:    davidli...@8ball-media.de <mailto:davidli...@8ball-media.de>
> > web:        http://8ball-media.de
>
> > ___
> > Heute schon was Gutes getan? -www.welpennothilfe.de
> > <http://www.welpennothilfe.de>
Reply all
Reply to author
Forward
0 new messages