David Vallner
10/1/2006 12:21:00 AM
baalbek wrote:
> David Vallner wrote:
>> B) Yes. "gem install -y instiki", "gem update -y" and "instiki" in a
>> console should help.
>
> Opps, after running gem install -y instiki (and gem update -y <== what
> do this do?), the command 'instiki' gave the following errors:
>
>
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb:13:in
> `remove_const': constant Logger::Format not defined (NameError)
> from
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support/clean_logger.rb:13
>
> from
> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
> from
> /usr/lib/ruby/gems/1.8/gems/activesupport-1.1.1/lib/active_support.rb:31
> from
> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
> from
> /usr/lib/ruby/gems/1.8/gems/activerecord-1.11.1/lib/active_record.rb:29
> 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 `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 `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 `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/instiki:17
>
>
> What is missing? I'm having Ruby 1.8.4 on a Linux Kubuntu system.
>
> Regards,
> Baalbek
>
I got the same issue before updating the gems, it's due to some
incompatible Logger changes between Ruby 1.8.2 and 1.8.3 that break Rails.
I thought updating Rails will make instiki pick up the new, since fixed
versions, but apparently the whole gem is hardcoded to use the old versions.
Look up its specification file, yours should be at
/usr/lib/ruby/gems/1.8/specifications/instiki-0.10.2.gemspec.
At the end, there should be lines specifying dependency versions:
s.add_dependency(%q<madeleine>, ["= 0.7.1"])
s.add_dependency(%q<RedCloth>, ["= 3.0.3"])
s.add_dependency(%q<rubyzip>, ["= 0.5.8"])
s.add_dependency(%q<rails>, ["= 0.13.1"])
Change the = to >= on all lines.
David Vallner