Installing mod_ruby on OS X
Richard Fairhurst <[email protected]> Thu, 20 Jul 2006 00:43:03 +0100
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I'm trying to install mod_ruby on OS X 10.3 and not having a lot of
success. Here's what I'm doing:
ruby configure.rb --prefix=/usr/local/apache2
--with-apxs=/usr/local/apache2/bin/apxs
make
sudo make install
(Sometimes I've added --enable-shared to the config options - it
doesn't appear to make any difference)
It compiles ok, but when I start Apache 2.2, it refuses to start:
httpd: Syntax error on line 58 of /usr/local/apache2/conf/httpd.conf:
Cannot load /usr/local/apache2/modules/mod_ruby.so into server: dyld:
/usr/local/apache2/bin/httpd Undefined
symbols:\n_ruby_release_date\n_ruby_version\n
To get round this, I can edit mod_ruby.c and replace ruby_release_date
and ruby_version with hardcoded values. :) Apache 2.2 will then start,
but mod_ruby still doesn't work. The Apache error_log reports:
[Thu Jul 20 00:35:14 2006] [notice] child pid 23420 exit signal
Trace/BPT trap (5)
[Thu Jul 20 00:35:14 2006] [notice] child pid 23419 exit signal
Trace/BPT trap (5)
[Thu Jul 20 00:35:14 2006] [notice] child pid 23418 exit signal
Trace/BPT trap (5)
dyld: /usr/local/apache2/bin/httpd Undefined symbols:
_rb_string_value_ptr
I've tried with Ruby 1.8.4 built from source, and Ruby 1.8.2 from
http://homepage.mac.com/discord/Ruby/ , and no luck so far.
Any thoughts?
Thanks in advance,
Richard