AV-Looks
Watching and Wondering

Instiki and Ruby 1.8.4

Posted by Andrew Tue, 25 Jul 2006 23:31:00 GMT

AVLUX has attempted a few times to upgrade Ruby from 1.8.2 to 1.8.4, but each time has found that 1.8.4 broke Instiki

But now with the advent of Mongrel, which only runs under Ruby 1.8.4, along with compelling discussions like this, the issue with Instiki has moved from the back burner to the front burner.

With a little careful googling, we found the answer here. As it turns out, it is actually an incompatiblity between Ruby 1.8.4 and Rails 0.13.1, which Instiki requires. One line of code in active_support/clean_logger.rb solves the problem:
##  Fix for Instiki on Ruby 1.8.4 per http://dev.instiki.org/ticket/277
##  remove_const "Format" 
    remove_const "Format" if const_defined? "Format" 

AVLUX has completed this change and upgraded to Ruby 1.8.4 on all servers. Stay tuned for more on Mongrel…

Posted in ,  | Tags , , ,  | no comments

Running Instiki - Best practices

Posted by Andrew Thu, 16 Feb 2006 00:47:00 GMT

Best practices for running Instiki

Initial setup – prerequisites

  1. Download and install Ruby 1.8.2. In all our experience, later versions of Ruby break Instiki. You can download the source from ruby-lang.org . We recommend building from source (tar zxvf, cd to dir, ./configure, make, make install), though you can certainly install ruby with any of the various package managers out there.
  2. Download and install rubygems . tar zxvf the file, cd into the dir, and run `ruby setup.rb`
  3. run `gem install instiki—include-dependencies`. Besides Ruby 1.8.2, the current Instiki (0.10.2) needs Rails 0.13.1, not higher. A very nice thing about gem is that you can have multiple versions of packages, e.g. Rails 1.0.0 and 0.13.1 installed, and different ruby gems and apps just seem to know what they need.
Read more...

Posted in ,  | Tags , , , ,  | no comments | no trackbacks