Since I can’t seem to figure out how to install apache_1.3.33 on mac ox x from source, I’m going to try and fix my issues with my currently installed version (comes with os x.)
The problem I’m 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 = 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é 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’s when my life became very unpleasant. I can’t 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 -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’m still learning Perl, this info is still a little much for me to understand. That is, I’m 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…
Any help would be much appreciated…
Boysenberry
- At the end of my rope with apache and mod_perl Boysenberry Payne
- Re: At the end of my rope with apache and mod_perl Barry Hoggard
- Re: At the end of my rope with apache and mod_p... Boysenberry Payne
- Re: At the end of my rope with apache and mod_p... Boysenberry Payne
- Re: At the end of my rope with apache and m... Barry Hoggard
- Re: At the end of my rope with apache a... Geoffrey Young
- Re: At the end of my rope with apa... Barry Hoggard
- Re: At the end of my rope with apache a... Boysenberry Payne
- Re: At the end of my rope with apache and mod_perl Boysenberry Payne
- Re: At the end of my rope with apache and mod_p... Boysenberry Payne
- preferred LB methods Matthew Berk