k***@effluency.net
2008-03-19 13:43:36 UTC
I have a new MacBook Pro running Leopard. I comes with the Apache 2.2.8
web server installed. It does not have mod_ruby installed. I am trying
to build mod_ruby in order to build a new Web application framework based
on Ruby.
(Don't talk to me about Rails. I've used it. I don't like it. I would
need to install mod_ruby regardless.)
Anyway, I downloaded 1.2.6 of mod_ruby and built it with the GNU tools
provided by XCode 3.0, that being gcc 4.0.1 etc.
It built w/o errors after running configure.rb --with-apxs and
--with-apr-includes=/usr/include/apr-1 which is where Apple keeps the APR
includes. However, Apache crashes on startup when this module is loaded.
According to httpd -V, my version of Apache2 is a 64-bit executable.
(Architecture: 64-bit)
Questions:
1. Does mod_ruby need to be built as a 64-bit bundle in order to run with
a 64-bit Apache2 server?
2. Does the current (1.2.6) version of mod_ruby support 64-bit operation?
3. After running configure.rb, the Makefile will build a universal bundle
which supports ppc and i386 32-bit architectures. When I hand-edit the
Makefile to build with -arch x86_64 -Wconversion, I get a ton of warnings
about 64-bit / 32-bit incompatibilities (thanks to -Wconversion, no
doubt). Are these warnings important?
Note that I write software for a living and am simply looking for some
guidance. Any patches I make to get this working, I would freely submit
to the current code maintainer.
Thanks,
Ken
web server installed. It does not have mod_ruby installed. I am trying
to build mod_ruby in order to build a new Web application framework based
on Ruby.
(Don't talk to me about Rails. I've used it. I don't like it. I would
need to install mod_ruby regardless.)
Anyway, I downloaded 1.2.6 of mod_ruby and built it with the GNU tools
provided by XCode 3.0, that being gcc 4.0.1 etc.
It built w/o errors after running configure.rb --with-apxs and
--with-apr-includes=/usr/include/apr-1 which is where Apple keeps the APR
includes. However, Apache crashes on startup when this module is loaded.
According to httpd -V, my version of Apache2 is a 64-bit executable.
(Architecture: 64-bit)
Questions:
1. Does mod_ruby need to be built as a 64-bit bundle in order to run with
a 64-bit Apache2 server?
2. Does the current (1.2.6) version of mod_ruby support 64-bit operation?
3. After running configure.rb, the Makefile will build a universal bundle
which supports ppc and i386 32-bit architectures. When I hand-edit the
Makefile to build with -arch x86_64 -Wconversion, I get a ton of warnings
about 64-bit / 32-bit incompatibilities (thanks to -Wconversion, no
doubt). Are these warnings important?
Note that I write software for a living and am simply looking for some
guidance. Any patches I make to get this working, I would freely submit
to the current code maintainer.
Thanks,
Ken