Helmut, Ken, Joe,
Hi. Sorry it took a while to get to this. I've been out of town over the weekend. Anyway, I installed Fedora 6 X86-64 into a VMWare image while I was away, so I could play with it.
It's actually quite easy to support the built-in Apache version when you're building the adaptor.
1) First, you need, of course, to have the prerequisite development packages installed for gcc, make, etc. 2) Next, you need to install the httpd-devel package using your package manager of choice. The httpd-devel package will provide apxs and other tools used for developing for Apache. Among the dependencies are the apr-devel and apr-util-devel packages, which provide the headers and libraries you'll need to compile the adaptor. 3) Configure the adaptor's make.config and Makefile to point to the right places, as necessary. For Fedora 6 and it's included Apache2.2.x, these are the settings I used:
make.config (in Adaptors directory) -------------------- Near top:
OS = LINUX
Then, in Linux section:
ADAPTORS = Apache2.2 APXS = /usr/sbin/apxs APACHEINCLUDE_DIR = /usr/include/httpd CC = gcc
Makefile (in Apache2.2 directory) ---------------------
In Linux section:
If you want ssl support, change the appropriate lines to read: ENABLE_SSL_SUPPORT = -DAPACHE_SECURITY_ENABLED OPENSSL_INCL_FLAGS = -I/usr/include/openssl OPENSSL_LIB_FLAGS = -L/usr/lib -lcrypto -lssl
APACHE_INCL_FLAGS = -I/usr/include/apr-1/
That's pretty much it. You can leave the rest of the settings as they are.
4) Open a terminal and cd to the Adaptors/Apache2.2 directory. 5) Do the make clean && make && sudo make install dance.
That should be it. If that works, just configure as normal. If not, check your work, and try again. I've successfully built on Centos, Ubuntu, Redhat, Fedora, and Suse, all in 64-bit. They are all pretty similar.
All the usual disclaimers apply. YMMV, etc., etc. :)
HTH,
Travis
Ken Anderson wrote:
I'm going to need this soon as well. What the simplest course?
Joe Little wrote: Subject: Re: mod_WebObjects with 64Bit Linux RPM? To: " Helmut Schottm?ller " <email@hidden> Cc: webobjects-dev Apple <email@hidden>
On 5/15/07, Helmut Schottmüller <email@hidden> wrote: Hi there,
has anyone been successful compiled and installed mod_WebObjects on a 64 bit linux system using the system version of the httpd server? I am using fedora core 6 and I am getting a segementation fault when I try to restart the webserver with my compiled version of mod_WebObjects. It seems that the compiliation of mod_WebObjects uses some different libraries than the precompiled httpd RPM:
start httpd: /bin/bash: line 1: 30260 Segmentation fault /usr/ sbin/httpd
When I compile the httpd server by myself, anything works fine. But for maintenance reasons I would like to use the RPM version of the system to get my automatic security updates. Are there some specific 64 bit compiler or linker flags I have to use?
Nope. Travis Cripps has fixed 64 bit support in the CVS version of the adaptor code. To my knowledge, there hasn't been a new release with these fixes. It also works with apache 2.2 and 2.0. It was originally built against RHEL4 64 bit, with the build environment resurrectable if needs be.
|