Installation experience on Leopard 10.5.2, Ruby 1.8.6, Rubygems 1.0.1
- few issues cropped up.
Installing the sprout gem goes okay;
cameron$ sudo gem install sprout --source http://gems.projectsprouts.org
Successfully installed sprout-0.7.167
1 gem installed
Run into the first error trying to generate my first Sprout;
cameron$ sprout -n as3 SomeProject
>> Creating new project 'SomeProject' with as3
>> Loading gem [sprout-as3-bundle] from
http://gems.rubyforge.org with it's dependencies
Successfully installed sprout-flashplayer-bundle-9.115.12
Successfully installed sprout-as3-bundle-0.1.39
2 gems installed
Installing ri documentation for sprout-as3-bundle-0.1.39...
Installing RDoc documentation for sprout-as3-bundle-0.1.39...
Successfully installed sprout-flashplayer-tool-9.115.6
1 gem installed
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require': no such file to load -- sprout/tasks/
flashplayer_task (MissingSourceFile)
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:342:in `new_constants_in'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/sprout-as3-bundle-0.1.39/lib/
sprout/as3_tasks.rb:2
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require'
from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/
active_support/dependencies.rb:496:in `require'
... 9 levels...
from /opt/local/lib/ruby/gems/1.8/gems/sprout-0.7.167/lib/sprout.rb:
465:in `sprout'
from /opt/local/lib/ruby/gems/1.8/gems/sprout-0.7.167/bin/sprout:123
from /opt/local/bin/sprout:19:in `load'
from /opt/local/bin/sprout:19
Running the same command again is successful for some reason;
>> Creating new project 'SomeProject' with as3
create SomeProject
create SomeProject/assets/skins/SomeProject
create SomeProject/bin
create SomeProject/lib
create SomeProject/script
create SomeProject/src
create SomeProject/test
create SomeProject/assets/skins/SomeProject/ProjectSprouts.png
create SomeProject/rakefile.rb
create SomeProject/README.txt
create SomeProject/script/generate
create SomeProject/assets/skins/SomeProjectSkin.as
create SomeProject/src/SomeProject.as
create SomeProject/src/SomeProjectRunner.as
Running 'rake' on my new Sprout raises a missing dependency for
'open4' gem;
cameron$ rake
(in /Users/cameron/projects/flash/SomeProject)
Successfully installed sprout-asunit3-library-3.2.5
1 gem installed
Successfully installed sprout-corelib-library-0.9.7
1 gem installed
Successfully installed sprout-flex2sdk-tool-2.1.2
1 gem installed
>> Execute: mxmlc -default-background-color=#FFFFFF -default-frame-rate=24 -default-size 600 400 -library-path+=lib/corelib.swc -output=bin/SomeProject.swf -source-path+=assets -source-path+=src -warnings=true src/SomeProject.as
rake aborted!
no such file to load -- open4
Install the open4 gem;
cameron$ sudo gem install open4
Successfully installed open4-0.9.6
1 gem installed
Try rake again;
cameron$ rake
(in /Users/cameron/projects/flash/SomeProject)
>> Execute: mxmlc -default-background-color=#FFFFFF -default-frame-rate=24 -default-size 600 400 -library-path+=lib/corelib.swc -output=bin/SomeProject.swf -source-path+=assets -source-path+=src -warnings=true src/SomeProject.as
Loading configuration file /Users/cameron/Library/Sprouts/cache/0.7/
sprout-flex2sdk-tool-2.1.2/archive/frameworks/flex-config.xml
bin/SomeProject.swf (12073 bytes)
Correctly configured mm.cfg file not found at: /Users/cameron/mm.cfg
This file is required in order to capture trace output.
Would you like this file created automatically? [Yn]
Y
>> Created file: /Users/cameron/mm.cfg
[WARNING] FlashPlayer encountered an error working with the mm.cfg log
and/or editing the Trust file
[WARNING] Cannot focus Flash Player without rb-appscript gem
This successfully displays the Sprouts logo in the SWF player.
If you need me to try anything out don't hesitate to ask - is the
least I can do to help out with the project. :)