At the end of my rope with apache and mod_perl
[prev]
[thread]
[next]
[Date index for 2005/02/08]
--Apple-Mail-3-740246254
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=WINDOWS-1252;
format=flowed
Since I can=92t seem to figure out how to install apache_1.3.33 on mac =
ox=20
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 Trace/BPT=20=
trap (5)
What I think I need to do is get mod_perl to look for the right library=20=
file for my currently working mysql database.
In my naivet=E9 I thought, well why not just rebuild mod_perl. So I=20
tried and found out you need the apache source in order to reinstall=20
mod_perl. That=92s when my life became very unpleasant. I can=92t get=20=
apache_1.3.33 to install. It gives me the following errors when I try=20=
to compile mod_perl:
cc -DDARWIN -DMOD_PERL -DUSE_PERL_SSI -fno-common -DPERL_DARWIN=20
-no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include=20
-DUSE_HSREGEX -DNO_DL_NEEDED -fno-common -DPERL_DARWIN -no-cpp-precomp=20=
-fno-strict-aliasing -pipe -I/usr/local/include=20
-I/usr/local/lib/perl5/5.8.6/darwin-2level/CORE -I. -I../..=20
-DUSE_PERL_SSI -fno-common -DPERL_DARWIN -no-cpp-precomp=20
-fno-strict-aliasing -pipe -I/usr/local/include -DMOD_PERL \
-o httpd buildmark.o modules.o modules/proxy/libproxy.a=20
modules/perl/libperl.a modules/standard/libstandard.a main/libmain.a=20
./os/unix/libos.a ap/libap.a regex/libregex.a `perl=20
/Users/boysie/unpublished/sources/mod_perl-1.29/src/modules/perl/ldopts=20=
Apache ` -L/usr/local/lib=20
/usr/local/lib/perl5/5.8.6/darwin-2level/auto/DynaLoader/DynaLoader.a=20
-L/usr/local/lib/perl5/5.8.6/darwin-2level/CORE -lperl -ldl -lm -lc =20
-lexpat
ld: warning multiple definitions of symbol _regcomp
regex/libregex.a(regcomp.o) definition of _regcomp in section=20
(__TEXT,__text)
/usr/lib/libdl.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
regex/libregex.a(regexec.o) definition of _regexec in section=20
(__TEXT,__text)
/usr/lib/libdl.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
regex/libregex.a(regfree.o) definition of _regfree in section=20
(__TEXT,__text)
/usr/lib/libdl.dylib(regfree.So) definition of _regfree
ld: Undefined symbols:
_actions_module
_include_module
_log_config_module
make[1]: *** [target_static] Error 1
make: *** [apache_httpd] Error 2
Considering that I=92m still learning Perl, this info is still a little=20=
much for me to understand. That is, I=92m not sure how to correct it.
I need to get mod_perl up and running asap. It behooves me to figure=20
out how to get mod_perl to look for the right database library=85
Any help would be much appreciated=85
Boysenberry=
--Apple-Mail-3-740246254
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
charset=WINDOWS-1252
<fontfamily><param>Times New Roman</param>Since I can=92t seem to figure
out how to install apache_1.3.33 on mac ox x from source, I=92m going to
try and fix my issues with my currently installed version (comes with
os x.)
The problem I=92m having is with mod_perl and mysql. I used fink to
install mysql at one point and it confused mod_perl as to which mysql
database to use. When I use mod_perl as a mod_cgi script it gets the
right database, when I use perl scripts using mod_perl it gives me the
following error:
dyld: /usr/sbin/httpd can't open library:
/sw/lib/mysql/libmysqlclient.14.dylib (No such file or directory,
errno =3D 2)
[Tue Feb 8 14:43:05 2005] [notice] child pid 436 exit signal
Trace/BPT trap (5)
What I think I need to do is get mod_perl to look for the right
library file for my currently working mysql database.
In my naivet=E9 I thought, well why not just rebuild mod_perl. So I
tried and found out you need the apache source in order to reinstall
mod_perl. That=92s when my life became very unpleasant. I can=92t get
apache_1.3.33 to install. It gives me the following errors when I try
to compile mod_perl:
cc -DDARWIN -DMOD_PERL -DUSE_PERL_SSI -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include
-DUSE_HSREGEX -DNO_DL_NEEDED -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include
-I/usr/local/lib/perl5/5.8.6/darwin-2level/CORE -I. -I../..
-DUSE_PERL_SSI -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include -DMOD_PERL \
-o httpd buildmark.o modules.o modules/proxy/libproxy.a
modules/perl/libperl.a modules/standard/libstandard.a main/libmain.a
./os/unix/libos.a ap/libap.a regex/libregex.a `perl
/Users/boysie/unpublished/sources/mod_perl-1.29/src/modules/perl/ldopts
Apache ` -L/usr/local/lib
/usr/local/lib/perl5/5.8.6/darwin-2level/auto/DynaLoader/DynaLoader.a
-L/usr/local/lib/perl5/5.8.6/darwin-2level/CORE -lperl -ldl -lm -lc=20
-lexpat
ld: warning multiple definitions of symbol _regcomp
regex/libregex.a(regcomp.o) definition of _regcomp in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
regex/libregex.a(regexec.o) definition of _regexec in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
regex/libregex.a(regfree.o) definition of _regfree in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regfree.So) definition of _regfree
ld: Undefined symbols:
_actions_module
_include_module
_log_config_module
make[1]: *** [target_static] Error 1
make: *** [apache_httpd] Error 2
Considering that I=92m still learning Perl, this info is still a little
much for me to understand. That is, I=92m not sure how to correct it.
I need to get mod_perl up and running asap. It behooves me to figure
out how to get mod_perl to look for the right database library=85
Any help would be much appreciated=85
Boysenberry</fontfamily>=
--Apple-Mail-3-740246254--
 |
At the end of my rope with apache and mod_perl
Boysenberry Payne 21:01 on 08 Feb 2005
|