script/generate state causes ruby syntax error

18 views
Skip to first unread message

Jooma

unread,
Feb 1, 2008, 2:21:48 PM2/1/08
to ShatteredRuby
Hi all, I just stumped on Shattered this morning and coming from rails
coding I was really excited to give this a try.
I tried following the first steps tutorial but got snagged when trying
to generate the observation state.

Hopefully someone can advise how to proceed, here's the error I got:
(ps using Vista 64 as my OS)

\dirty_ruby>ruby script/generate state observation
Warning:c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
importenv is deprecated after Ruby 1.8.1 (no replacement)
c:/ruby/lib/ruby/1.8/importenv.rb:14: (eval):1: compile error
(SyntaxError)
(eval):1: syntax error, unexpected '(', expecting $end
$CommonProgramFiles(x86) = v
^ from c:/ruby/lib/ruby/1.8/importenv.rb:12:in
`eval'
from c:/ruby/lib/ruby/1.8/importenv.rb:14
from c:/ruby/lib/ruby/1.8/importenv.rb:12:in `each'
from c:/ruby/lib/ruby/1.8/importenv.rb:12
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require'
from c:/ruby/lib/ruby/1.8/env.rb:9
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
... 13 levels...
from ./script/../config/boot.rb:31
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require'
from script/generate:2
Reply all
Reply to author
Forward
0 new messages