dependencies

references: rails stack under OS X Snow Leopard

installing

  1. dependencies
  2. boot script
  3. passenger
  4. sphinx
  5. zena@alwaysdata

This article is a walkthrough to help installation of the dependencies. I am writing this after having installed everything, so please give me some feedback so that I can correct this tutorial if I missed something (mailing-list).

debian (lenny and up)

You can use the install script.

Known issues:

You might need to start mysql server if “cap” command fails:

$ /etc/init.d/mysql start

If the server won’t start, you may have a problem with “rmagick”. Try running “convert” and if you get convert: error while loading shared libraries: libMagickCore.so.2, you need to add /usr/local/lib to the search path for libraries:

$ ldconfig /usr/local/lib
$ gem install rmagick

That’s all you need on debian, the rest (apache2 configuration, database creation, etc) is done with capistrano.

Mac OS X

Read rails stack under OS X Snow Leopard and then run:

$ sudo gem install zena

comments

  1. Sunday, October 12 2008 10:58 DaVinci

    Why only MySql database? I want to use Postgresql, but Zena install procedure is very obstrusive and rigid. Is there any reason for not supporting Postgresql or other Rails compatible database?

    Thank you.

  2. Sunday, October 12 2008 12:24 Gaspard Bucher

    There are some mysql specific parts that would need to be be abstracted to work with other databases (date intervals, fulltext search).

    That’s not a lot, but I first needed to have zena work on a database that was easy to install at the time I started the project (2005).

    If you think Postgresql/SQLite compatibility is a must-have, please fill a ticket on zena.lighthouseapp.com with some justification so someone finds the motivation to fix this soon enough.

  3. Friday, November 21 2008 15:07 Gaspard Bucher

    Updated install script. Tested on a clean debian etch.

  4. Sunday, June 14 2009 12:47 alain.pernelle

    J’ai éssayé l’installation sous debian,

    J’obtiens en page web: 500 Internal Server Error
    et le fichier de log m’indique ”/var/zena/current/log/production.log”:

    DISPATCHER FAILSAFE RESPONSE (has cgi) Sun Jun 14 10:42:40 +0000 2009
    Status: 500 Internal Server Error
    Expected /var/zena/releases/20090614093217/app/controllers/nodes_controller.rb
    to define NodesController
    /var/zena/releases/20090614093217/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:249:in `load_missing_constant’
    /var/zena/releases/20090614093217/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:452:in `const_missing’
    /var/zena/releases/20090614093217/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:464:in `const_missing’
    /var/zena/releases/20090614093217/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/inflector.rb:250:in `constantize’
    /var/zena/releases/20090614093217/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/core_ext/string/inflections.rb:148:in `constantize’
    /var/zena/releases/20090614093217/vendor/rails/actionpack/lib/action_controller/routing.rb:1289:in `recognize’
    /var/zena/releases/20090614093217/vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:159:in
    `process_client’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in
    `each’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in
    `process_client’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in
    `run’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in
    `initialize’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in
    `new’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in
    `run’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in
    `initialize’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in
    `new’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in
    `run’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:282:in `run’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `each’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `run’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run’
    /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
    /usr/local/bin/mongrel_rails:19:in `load’
    /usr/local/bin/mongrel_rails:19

  5. Sunday, June 14 2009 23:08 Gaspard Bucher

    Alain: this is a problem with newer (probably gettext) gems. Until I move all gems in “vendor” to avoid such problems, here is the list of gems known to support current version of zena: unknown link.

  6. Tuesday, September 08 2009 11:31 cga

    Hi Gaspard,

    i watched the videos and i’m really impressed with Zena. It is awesome.

    anyway i leave this comment here to add 1up to PostgreSQL request and to add 1up for Phusion Passenger support.

    I know that doing this alone can be time consuming but IMHO Zena should have at least 2 DB support and definitely Passenger support.

    keep the good work going and “have fun building the house” =)

    cga

  7. Saturday, September 12 2009 19:12 Gaspard Bucher

    Hi cga !

    We will definitely support passenger for our 1.0 release in October (I even contributed to passenger to support multiple hosts).

    As for postgresql, we will add support for this DB when we integrate Sphinx (to keep fulltext search while having better transactions).

  8. Thursday, December 10 2009 10:50 Gaspard Bucher

    [edit] Overall simplification of the install process now that zena is a gem.

  9. Saturday, May 08 2010 15:09 cga

    Hi Gaspard,

    I’m cga, I came here to check PGSQL support. it seems there’s none yet unfortunately.

    Can’t wait to have Zena to work on my stack:

    Debian Lenny
    Nginx w/ Passenger
    PostgreSQL

    keep up the good work


    cga

  10. Monday, May 10 2010 10:23 Gaspard Bucher

    Hi cga !

    The default stack for the 1.0 release will probably be Apache2+Passenger. Adding support for PostgreSQL should be a matter of weeks after the 1.0 release. Same for Nginx.

    I know we are a little late with this 1.0 release but we wanted to implement some important changes, mainly property and rubyless. This work is coming to an end (see the zena, the peaceful CMS / Ruby on Rails CMS).

  11. Sunday, May 16 2010 14:25 cga

    Hi Gaspard,

    nice to now this!!!!! can’t wait for it.

    I just removed debian default ruby and installed Ruby Enterprise Edition and of course Nginx w/ Passnger.

    looking forward for Zena 1.0 w/ PostgreSQL and the above support.

    keep up the good work.

  12. leave a comment