mod_ruby install on Linux Fedora Core 5 Apache2 (2.2.2), some pointers
John ORourke <[email protected]> Sat, 24 Feb 2007 08:03:35 +0000
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hi folks, This was going to be a 'how do I' but after figuring it out it's now a rough 'how to'. I'm coming to ruby from mod_perl, and hope to port my enormous CMS at some stage. Running on Linux (Fedora Core 5) with Apache 2.2.2. I have installed the packages httpd-devel (apxs and friends), ruby, ruby-rdoc, ruby-devel (the libraries and header files), ruby-mysql, eruby, eruby-devel. I happily ran ./configure.rb --with-apxs=/usr/sbin/apxs .... all good, but then 'make' returned pages and pages of errors due to missing header files. These were all apr_* includes so I tried installing the libapreq2-devel package (the apreq headers), still no joy. Eventually I realised libapreq2 puts its headers into /usr/includes/apr-1 for some reason so the correct configure options are: ./configure.rb --with-apxs=/usr/sbin/apxs --with-apr-includes=/usr/include/apr-1 I then struggled to make ERuby work, until I noticed the very subtle difference in httpd.conf between RubyRequire apache/ruby-run and RubyRequire apache/eruby-run. hope this helps someone else! John -- Versatilia Ltd www.versatilia.com