Re: At the end of my rope with apache and mod_perl
[prev]
[thread]
[next]
[Date index for 2005/02/08]
On Feb 8, 2005, at 4:01 PM, Boysenberry Payne wrote:
> Since I can=92t seem to figure out how to install apache_1.3.33 on mac=20=
> ox x from source, I=92m going to try and fix my issues with my =
currently=20
> installed version (comes with os x.)
> The problem I=92m having is with mod_perl and mysql. I used fink to=20=
> install mysql at one point and it confused mod_perl as to which mysql=20=
> database to use. When I use mod_perl as a mod_cgi script it gets the=20=
> right database, when I use perl scripts using mod_perl it gives me the=20=
> following error:
>
> dyld: /usr/sbin/httpd can't open library:=20
> /sw/lib/mysql/libmysqlclient.14.dylib (No such file or directory,=20
> errno =3D 2)
> [Tue Feb 8 14:43:05 2005] [notice] child pid 436 exit signal=20
> Trace/BPT trap (5)
>
>
> What I think I need to do is get mod_perl to look for the right=20
> library file for my currently working mysql database.
I use Marc Liyanage's package for MySQL on my PowerBook.
http://www.entropy.ch/software/macosx/
Your errors look like you're mixing versions of perl, as if the one=20
you're compiling mod_perl with is getting confused between the system=20
perl and the fink perl.
I compiled my own perl from source and put it in /opt. My ls -l /opt=20
looks like this:
lrwxr-xr-x 1 root admin 11 3 Apr 2004 perl -> perl-5.8.3/
drwxr-xr-x 5 root admin 170 3 Apr 2004 perl-5.8.3
I then put /opt/perl/bin in my path via .bash_profile. That way when I=20=
use sudo it sees that perl too.
I also installed Apache and mod_perl from source. I'm using DSO for=20
mod_perl. My script to build Apache (with ssl):
---
INSTALL_ROOT=3D/usr/local/apache
export SSL_BASE=3D/opt/ssl
BUILD_DIR=3D$HOME/src
cd $BUILD_DIR/apache_1.3.*
APACHE_DIR=3D`pwd`
cd $BUILD_DIR/mm-1.*
export EAPI_MM=3D`pwd`
./configure --disable-shared && make
cd $BUILD_DIR/mod_ssl-2.*
MODSSL_DIR=3D`pwd`
./configure --with-apache=3D$APACHE_DIR
cd $APACHE_DIR
./configure \
--prefix=3D$INSTALL_ROOT \
--with-layout=3D"Apache" \
--disable-module=3Dusertrack \
--enable-module=3Dso \
--enable-module=3Dproxy \
--enable-module=3Drewrite \
--disable-module=3Duserdir \
--enable-module=3Dcgi \
--disable-rule=3Dexpat \
--disable-module=3Dimap \
--disable-module=3Dinclude \
--enable-module=3Dautoindex \
--enable-module=3Dauth \
--enable-module=3Dssl \
--enable-shared=3Dssl \
--disable-rule=3DSSL_COMPAT
make && sudo make install
---
My mod_perl so build script:
BUILD_DIR=3D$HOME/src
APXS=3D/usr/local/apache/bin/apxs
cd $BUILD_DIR/mod_perl-1.2*
MODPERL_DIR=3D`pwd`
perl Makefile.PL \
USE_APXS=3D1 \
WITH_APXS=3D$APXS \
EVERYTHING=3D1
make && make test && sudo make install
--
Barry Hoggard
Tristan Media LLC
w: www.tristanmedia.com
yahoo/aim: hoggardb
 |
 |
Re: At the end of my rope with apache and mod_perl
Barry Hoggard 23:02 on 08 Feb 2005
|