Unable to run demo

18 views
Skip to first unread message

herman64

unread,
Aug 6, 2010, 9:22:45 PM8/6/10
to ActiveWarehouse Discuss
Hi,

I have installed activewarehouse under Ruby 1.8, Rails 2.3.5, windows
environment.
The ruby on rails was installed using Bitnami Rubystack

I followed instructions in read me.

I could not follow this part...
=====
Next, you will need to freeze or link the Gem to your Rails app. I
prefer using
the gemsonrails project:

gem install gemsonrails

And then in your Rails app:

rake gems:link GEM=activewarehouse

It is possible that freezing the Gem to the Rails app may not work at
all times. It is most often best to install as a plugin.
=====

I continued to do create a new project with "rails dw" then "ruby
script/generate fact Sales"

Works OK.

Then, I downloaded the demo, extracted as a new project in the
projects folder and created a new db aw_development in mysql.

I installed rails version 1.1.6 using gem install.
environment.rb:
RAILS_GEM_VERSION = '1.1.6'

I then do the "rake migrate", encountered errors...
======
C:\Users\herman-darmawan\BitNami RubyStack projects\bcotton-
activewarehouse-demo
-68ee293>rake migrate
(in C:/Users/herman-darmawan/BitNami RubyStack projects/bcotton-
activewarehouse-
demo-68ee293)
C:/Users/herman-darmawan/BitNami RubyStack projects/bcotton-
activewarehouse-demo
-68ee293/config/boot.rb:25:Warning: Gem::SourceIndex#search support
for String p
atterns is deprecated, use #find_name
rake aborted!
undefined method `require_gem' for main:Object
C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/
rake-0.8.7/lib/ra
ke.rb:2383:in `raw_load_rakefile'
(See full trace by running task with --trace)
======

What's wrong?
Can anyone help me out?


Herman Darmawan

herman64

unread,
Aug 6, 2010, 11:26:26 PM8/6/10
to ActiveWarehouse Discuss
I have made some progress...

1. config/boot.rb seems to be old.
I copied standard boot.rb that rails generate into the demo config
folder.

2. db created in mysql must have no password for root@localhost.

"rake migrate" generated fewer errors
C:\Users\herman-darmawan\BitNami RubyStack projects\bcotton-
activewarehouse-demo
-68ee293>rake migrate
(in C:/Users/herman-darmawan/BitNami RubyStack projects/bcotton-
activewarehouse-
demo-68ee293)
[memcache-client] Could not load SystemTimer gem, falling back to
Ruby's slower/
unsafe timeout library: no such file to load -- system_timer
Rails Error: Unable to access log file. Please ensure that C:/Users/
herman-darma
wan/BitNami RubyStack projects/bcotton-activewarehouse-demo-68ee293/
config/../lo
g/development.log exists and is chmod 0666. The log level has been
raised to WAR
N and the output directed to STDERR until the problem is fixed.
== CreateDateDimension: migrating
=============================================

Tables generated fine.

Adventure continues...

Herman

herman64

unread,
Aug 6, 2010, 11:29:30 PM8/6/10
to ActiveWarehouse Discuss
Tried "gem install SystemTimer" fatal error
=====
C:\Users\herman-darmawan\BitNami RubyStack projects\bcotton-
activewarehouse-demo
-68ee293>gem install SystemTimer
Building native extensions. This could take a while...
ERROR: Error installing SystemTimer:
ERROR: Failed to build gem native extension.

"C:/Program Files/BitNami RubyStack/ruby/bin/ruby.exe" extconf.rb
creating Makefile

make
makefile:130: warning: overriding commands for target `C:/Program'
makefile:124: warning: ignoring old commands for target `C:/Program'
makefile:130: warning: overriding commands for target `Files/BitNami'
makefile:124: warning: ignoring old commands for target `Files/
BitNami'
make: *** No rule to make target `ruby.h', needed by
`system_timer_native.o'. S
top.


Gem files will remain installed in C:/Program Files/BitNami RubyStack/
ruby/lib/r
uby/gems/1.8/gems/SystemTimer-1.2 for inspection.
Results logged to C:/Program Files/BitNami RubyStack/ruby/lib/ruby/
gems/1.8/gems
/SystemTimer-1.2/ext/system_timer/gem_make.out
=====

Herman

herman64

unread,
Aug 6, 2010, 11:38:12 PM8/6/10
to ActiveWarehouse Discuss
Created the log folder under demo project

rake migrate no problems, only warning about SystemTimer.

ruby db/setup.rb

reported error as follows...
=====
C:\Users\herman-darmawan\BitNami RubyStack projects\bcotton-
activewarehouse-demo
-68ee293>ruby db/setup.rb
[memcache-client] Could not load SystemTimer gem, falling back to
Ruby's slower/
unsafe timeout library: no such file to load -- system_timer
C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/gems/
activesupport-1.3
.1/lib/active_support/dependencies.rb:123:in `const_missing':
uninitialized cons
tant ActiveWarehouse (NameError)
from C:/Program Files/BitNami RubyStack/ruby/lib/ruby/gems/1.8/
gems/acti
vesupport-1.3.1/lib/active_support/dependencies.rb:131:in
`const_missing'
from db/setup.rb:8
=====

This is a show stopper!

Herman
Reply all
Reply to author
Forward
0 new messages