/usr/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.1/lib/
shattered_ogrerb.rb:9:in `add_dll_paths': undefined method `+' for
nil:NilClass (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.1/lib/
shattered_ogrerb.rb:4:in `each'
from /usr/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.1/lib/
shattered_ogrerb.rb:4:in `add_dll_paths'
from /usr/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.1/lib/
shattered_ogrerb.rb:17
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in `gem_original_require'
from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:
27:in `require'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:229:in
`activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:228:in `each'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:228:in
`activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:214:in
`activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:213:in `each'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:213:in
`activate'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:66:in
`active_gem_with_options'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:59:in
`require_gem'
from /usr/bin/shatter:17
I'm using Debian testing, and "gem list --local shattered" output is:
*** LOCAL GEMS ***
shattered_ogrerb (0.5.1)
Shattered_ogrerb: Binds ogrerb to Shattered. Downloadable as a
gem.
shattered_pack (0.5.1)
Shattered Pack: The combination of model/view/controllers and the
domain specific language for each.
shattered_ruby (0.5.1)
Shattered: The main package tieing together controller, view, and
model
shattered_support (0.5.1)
Shattered Support: Allows a common derivation point for shattered
MVC.
What am i missing?
Thanks for the help
Actually I'm just starting out with ShatteredRuby on Ubuntu (but
Debian is my true distro love) and I got the same error. I was able
to get around it by editing
/usr/lib/ruby/gems/1.8/gems/shattered_ogrerb-0.5.1/lib/
shattered_ogrerb.rb (path respective to your system).
On line 8, it reads:
unless Platform.mac?
Change this to
unless (Platform.mac? or Platform.linux?)
and shatter will work.
Now, I'm still having problems beyond that, but hopefully that will
help you get started. Perhaps us Linux guys can help each other
out. :)
Cheers,
Eric
> Thanks for the helpI
Index: shattered_ogrerb/lib/shattered_ogrerb.rb
===================================================================
--- shattered_ogrerb/lib/shattered_ogrerb.rb (revision 280)
+++ shattered_ogrerb/lib/shattered_ogrerb.rb (working copy)
@@ -5,7 +5,7 @@
absolute_path = File.expand_path(File.dirname(__FILE__)
+"/../vendor/#{dir}/")
#TODO: This might be a ruby version issue instead of a
platform issue
# but in Mac PATH is capitalized
- unless Platform.mac?
+ unless (Platform.mac? or Platform.linux?)
ENV["path"] += ";#{absolute_path};"
else
ENV["PATH"] += ";#{absolute_path};"