Fluffy bunny

August 12, 2008

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.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress