Fluffy bunny

August 12, 2008

Sprouts install windows

Filed under: Uncategorized — aaron @ 2:14 pm

C:\Aaron\projects>java -version
java version “1.6.0_04″
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

C:\Aaron\projects>ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
-e:1: undefined local variable or method `rsion’ for main:Object (NameError)

C:\Aaron\projects>gem -v
1.1.1

C:\Aaron\projects>sprout -n as3 SomeProject
>> Creating new project ‘SomeProject’ with as3
>> Loading gem [sprout-as3-bundle] from http://gems.rubyforge.org with it’s dependencies
Bulk updating Gem source index for: http://gems.rubyforge.org/
Bulk updating Gem source index for: http://gems.rubyforge.org/
Successfully installed activesupport-2.1.0
Successfully installed sprout-as3-bundle-0.2.9
2 gems installed
Installing ri documentation for activesupport-2.1.0…
Installing ri documentation for sprout-as3-bundle-0.2.9…
Installing RDoc documentation for activesupport-2.1.0…

— sprout upgraded activesupport to 2.1.0

>> Loading gem [sprout-flashplayer-bundle] from http://gems.rubyforge.org with it’s dependencies
Bulk updating Gem source index for: http://gems.rubyforge.org/
Bulk updating Gem source index for: http://gems.rubyforge.org/
Successfully installed sprout-flashplayer-bundle-9.124.3
1 gem installed
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.rb
create  SomeProject/assets/skins/SomeProjectSkin.as
create  SomeProject/src/SomeProject.as
create  SomeProject/src/SomeProjectRunner.as

C:\Aaron\projects>gem list

*** LOCAL GEMS ***

actionmailer (2.0.2)
actionpack (2.0.2)
activerecord (2.0.2)
ActiveRecord-JDBC (0.5)
activeresource (2.0.2)
activesupport (2.1.0, 2.0.2)
archive-tar-minitar (0.5.2)
capistrano (2.4.3)
fxri (0.3.6)
fxruby (1.6.12)
highline (1.4.0)
hoe (1.7.0)
hpricot (0.6)
jruby-openssl (0.2.3)
log4r (1.0.5)
net-scp (1.0.1)
net-sftp (2.0.1)
net-ssh (2.0.3)
net-ssh-gateway (1.0.0)
rails (2.0.2)
rake (0.8.1)
rspec (1.1.4)
rubigen (1.3.2)
ruby-debug-base (0.10.0)
ruby-debug-ide (0.1.10)
rubyforge (1.0.0)
rubygems-update (1.1.1)
rubyzip (0.9.1)
Selenium (1.1.14)
sources (0.0.1)
sprout (0.7.193)
sprout-as3-bundle (0.2.9)
sprout-flashplayer-bundle (9.124.3)
sqlite3-ruby (1.2.2)
test-unit (2.0.0)
watir (1.5.6)
win32-api (1.0.6, 1.0.4)
win32-clipboard (0.4.3)
win32-dir (0.3.2)
win32-eventlog (0.4.6)
win32-file (0.5.4)
win32-file-stat (1.2.7)
win32-open3 (0.2.6, 0.2.5)
win32-process (0.5.8)
win32-sapi (0.1.4)
win32-sound (0.4.1)
windows-api (0.2.3)
windows-pr (0.8.5)
ZenTest (3.10.0)

C:\Aaron\projects\SomeProject>rake
(in C:/Aaron/projects/SomeProject)
>> Loading gem [sprout-asunit3-library] from http://gems.rubyforge.org with it’s dependencies
Bulk updating Gem source index for: http://gems.rubyforge.org/
Successfully installed sprout-asunit3-library-3.2.5
1 gem installed
asunit3-1.5.zip:   100% |………………..|  24.7KB 795.7KB/s Time: 00:00:00
>> Loading gem [sprout-flex3sdk-tool] from http://gems.rubyforge.org with it’s dependencies
Bulk updating Gem source index for: http://gems.rubyforge.org/
Bulk updating Gem source index for: http://gems.rubyforge.org/
Successfully installed sprout-flex3sdk-tool-3.0.2
1 gem installed
flex_sdk_3.zip:    100% |………………..|  78.4MB   1.5MB/s Time: 00:00:54
[WARNING] symlink() function is unimplemented on this machine for: runtimes/air/mac/Adobe AIR.framew
ork/Resources
[WARNING] symlink() function is unimplemented on this machine for: runtimes/air/mac/Adobe AIR.framew
ork/Frameworks
[WARNING] symlink() function is unimplemented on this machine for: runtimes/air/mac/Adobe AIR.framew
ork/Versions/Current
[WARNING] symlink() function is unimplemented on this machine for: runtimes/air/mac/Adobe AIR.framew
ork/Adobe AIR
>> Execute: mxmlc.exe -default-background-color=#FFFFFF -default-frame-rate=24 -default-size 970 550
-output=bin/SomeProject-debug.swf -source-path+=src -source-path+=assets -verbose-stacktraces=true
-warnings=true src/SomeProject.as
Loading configuration file C:\Documents and Settings\evansaa\Local Settings\Application Data\Sprouts
\cache.7\sprout-flex3sdk-tool-3.0.2\archive\frameworks\flex-config.xml
bin/SomeProject-debug.swf (13733 bytes)

Correctly configured mm.cfg file not found at: C:\Documents and Settings\evansaa/mm.cfg

This file is required in order to capture trace output.

Would you like this file created automatically? [Yn]

y
>> Created file: C:/Documents and Settings/evansaa/mm.cfg
>> Added C:/Aaron/projects/SomeProject/bin to Flash Player Trust file at: C:\Documents and Settings\
evansaa/Application Data/Macromedia/Flash Player/#Security/FlashPlayerTrust/sprout.cfg
>> Loading gem [sprout-flashplayer-tool] from http://gems.rubyforge.org with it’s dependencies
Bulk updating Gem source index for: http://gems.rubyforge.org/
Bulk updating Gem source index for: http://gems.rubyforge.org/
Successfully installed sprout-flashplayer-tool-9.124.0
1 gem installed
sa_flashplayer_9_: 100% |………………..|   3.6MB   1.4MB/s Time: 00:00:02
[trace] SomeProject instantiated!

— sprouts flash app displayed

C:\Aaron\projects\SomeProject>rake test
(in C:/Aaron/projects/SomeProject)
>> Execute: mxmlc.exe -debug -default-background-color=#FFFFFF -default-frame-rate=24 -default-size
900 550 -output=bin/SomeProjectRunner.swf -source-path+=src -source-path+=assets -source-path+=test
-source-path+=lib\asunit3 -verbose-stacktraces=true -warnings=true src/SomeProjectRunner.as
Loading configuration file C:\Documents and Settings\evansaa\Local Settings\Application Data\Sprouts
\cache.7\sprout-flex3sdk-tool-3.0.2\archive\frameworks\flex-config.xml

rake aborted!
[ERROR] C:\Aaron\projects\SomeProject\src\SomeProjectRunner.as(12): col: 10 Error: Access of undefin
ed property AllTests.

start(AllTests, null, TestRunner.SHOW_TRACE);
^

(See full trace by running task with –trace)

Sprout install linux

Filed under: Uncategorized — aaron @ 2:13 pm

$ cat /etc/redhat-release
CentOS release 5 (Final)

$ ruby -v
ruby 1.8.5 (2006-08-25) [i386-linux]

$ gem -v
1.2.0

$ gem list –local

*** LOCAL GEMS ***

actionmailer (2.0.2)
actionpack (2.0.2)
activerecord (2.0.2)
activeresource (2.0.2)
activesupport (2.0.2)
hoe (1.7.0)
mysql (2.7)
pg (0.7.9.2008.03.18)
rails (2.0.2)
rake (0.8.1)
rspec (1.1.4)
rubyforge (1.0.0)
sqlite3-ruby (1.2.2)
test-unit (2.0.0)
ZenTest (3.10.0)

# gem install sprout
Successfully installed rubyzip-0.9.1
Successfully installed archive-tar-minitar-0.5.2
Successfully installed rubigen-1.3.2
Successfully installed net-ssh-2.0.3
Successfully installed net-sftp-2.0.1
Successfully installed open4-0.9.6
Successfully installed sprout-0.7.193-x86-linux
7 gems installed
Installing ri documentation for archive-tar-minitar-0.5.2…
Installing ri documentation for rubigen-1.3.2…
Installing ri documentation for net-ssh-2.0.3…
Installing ri documentation for net-sftp-2.0.1…
Installing ri documentation for sprout-0.7.193-x86-linux…
Installing RDoc documentation for archive-tar-minitar-0.5.2…
Installing RDoc documentation for rubigen-1.3.2…
Installing RDoc documentation for net-ssh-2.0.3…
Installing RDoc documentation for net-sftp-2.0.1…
Installing RDoc documentation for sprout-0.7.193-x86-linux…

$ sprout -n as3 FooFoo
>> Creating new project ‘FooFoo’ with as3
>> Loading gem [sprout-as3-bundle] from http://gems.rubyforge.org with it’s dependencies

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

Password:
— what password are you expecting?

sudo: 3 incorrect password attempts
/usr/lib/ruby/gems/1.8/gems/sprout-0.7.193-x86-linux/lib/sprout.rb:343:in `find_gem_spec’: Gem Spec not found for sprout-as3-bundle  (Sprout::SproutError)
from /usr/lib/ruby/gems/1.8/gems/sprout-0.7.193-x86-linux/lib/sprout.rb:357:in `find_gem_spec’
from /usr/lib/ruby/gems/1.8/gems/sprout-0.7.193-x86-linux/lib/sprout.rb:273:in `sprout’
from /usr/lib/ruby/gems/1.8/gems/sprout-0.7.193-x86-linux/lib/sprout.rb:465:in `sprout’
from /usr/lib/ruby/gems/1.8/gems/sprout-0.7.193-x86-linux/bin/sprout:123
from /usr/bin/sprout:19:in `load’
from /usr/bin/sprout:19

— something weird is going on, I can’t log in as root anymore– it just hangs.
problem 1: ’su -’ doesn’t work, but ’su’ does.  Is there something wrong with profile?
– ???
problem 2: I did not have sudo access — sprouts wants to install more when it creates a project
– fixed:  visudo to add %wheel rule, added aaron to wheel group

$ sprout -n as3 SomeProject
>> Creating new project ‘SomeProject’ with as3
>> Loading gem [sprout-as3-bundle] from http://gems.rubyforge.org with it’s dependencies
Password:
Successfully installed sprout-as3-bundle-0.2.9
1 gem installed
Installing ri documentation for sprout-as3-bundle-0.2.9…
Installing RDoc documentation for sprout-as3-bundle-0.2.9…
>> Loading gem [sprout-flashplayer-bundle] from http://gems.rubyforge.org with it’s dependencies
Successfully installed sprout-flashplayer-bundle-9.124.3
1 gem installed
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

$ gem list –local

*** LOCAL GEMS ***

actionmailer (2.0.2)
actionpack (2.0.2)
activerecord (2.0.2)
activeresource (2.0.2)
activesupport (2.0.2)
archive-tar-minitar (0.5.2)
hoe (1.7.0)
mysql (2.7)
net-sftp (2.0.1)
net-ssh (2.0.3)
open4 (0.9.6)
pg (0.7.9.2008.03.18)
rails (2.0.2)
rake (0.8.1)
rspec (1.1.4)
rubigen (1.3.2)
rubyforge (1.0.0)
rubyzip (0.9.1)
sprout (0.7.193)
sprout-as3-bundle (0.2.9)
sprout-flashplayer-bundle (9.124.3)
sqlite3-ruby (1.2.2)
test-unit (2.0.0)
ZenTest (3.10.0)

– added:
archive-tar-minitar (0.5.2)
net-sftp (2.0.1)
net-ssh (2.0.3)
open4 (0.9.6)
rubigen (1.3.2)
rubyzip (0.9.1)
sprout (0.7.193)
sprout-as3-bundle (0.2.9)
sprout-flashplayer-bundle (9.124.3)

$ cd SomeProject
$ rake
(in /home/aaron/projects/SomeProject)
>> Loading gem [sprout-asunit3-library] from http://gems.rubyforge.org with it’s dependencies
Password:
Successfully installed sprout-asunit3-library-3.2.5
1 gem installed
asunit3-1.5.zip:   100% |………………..|  24.7KB 151.6KB/s Time: 00:00:00
>> Loading gem [sprout-flex3sdk-tool] from http://gems.rubyforge.org with it’s dependencies
Successfully installed sprout-flex3sdk-tool-3.0.2
1 gem installed
flex_sdk_3.zip:    100% |………………..|  78.4MB   1.9MB/s Time: 00:00:40
>> Execute: mxmlc -default-background-color=#FFFFFF -default-frame-rate=24 -default-size 970 550 -output=bin/SomeProject-debug.swf -source-path+=src -source-path+=assets -verbose-stacktraces=true -warnings=true src/SomeProject.as
rake aborted!
[ERROR] /home/aaron/.sprouts/cache/0.7/sprout-flex3sdk-tool-3.0.2/archive/bin/mxmlc: line 47: java: command not found

(See full trace by running task with –trace)

— installed JDK 1.5.0

$ java -version
java version “1.5.0_16″
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b02)
Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)

$ rake
(in /home/aaron/projects/SomeProject)
>> Execute: mxmlc -default-background-color=#FFFFFF -default-frame-rate=24 -default-size 970 550 -output=bin/SomeProject-debug.swf -source-path+=src -source-path+=assets -verbose-stacktraces=true -warnings=true src/SomeProject.as
Loading configuration file /home/aaron/.sprouts/cache/0.7/sprout-flex3sdk-tool-3.0.2/archive/frameworks/flex-config.xml
bin/SomeProject-debug.swf (13740 bytes)

[WARNING] FlashPlayer encountered an error working with the mm.cfg log and/or editing the Trust file
>> Loading gem [sprout-flashplayer-tool] from http://gems.rubyforge.org with it’s dependencies
Password:
Successfully installed sprout-flashplayer-tool-9.124.0
1 gem installed
flash_player_9_li: 100% |………………..|   9.1MB   1.6MB/s Time: 00:00:05
rake aborted!
can’t convert nil into String

(See full trace by running task with –trace)

$ gem list –local

*** LOCAL GEMS ***

actionmailer (2.0.2)
actionpack (2.0.2)
activerecord (2.0.2)
activeresource (2.0.2)
activesupport (2.0.2)
archive-tar-minitar (0.5.2)
hoe (1.7.0)
mysql (2.7)
net-sftp (2.0.1)
net-ssh (2.0.3)
open4 (0.9.6)
pg (0.7.9.2008.03.18)
rails (2.0.2)
rake (0.8.1)
rspec (1.1.4)
rubigen (1.3.2)
rubyforge (1.0.0)
rubyzip (0.9.1)
sprout (0.7.193)
sprout-as3-bundle (0.2.9)
sprout-asunit3-library (3.2.5)
sprout-flashplayer-bundle (9.124.3)
sprout-flashplayer-tool (9.124.0)
sprout-flex3sdk-tool (3.0.2)
sqlite3-ruby (1.2.2)
test-unit (2.0.0)
ZenTest (3.10.0)

I’m wondering if the problem is because I don’t have a GUI to run flash.

Powered by WordPress