Chen Shiyuan wrote:
> I tried that and it gave me :-
>
> server:mod_midgard-1.4beta5a-1# make
> apxs -c -DHAVE_LIBMIDGARD=1 -DHAVE_MIDGARD_INIT=1 -DHAVE_MIDGARD_PARSER=1
> -DHAVE_MIDGARD_H=1 -L/usr/lib/mysql -L/usr/local/lib -L/usr/lib -lglib
> -lmidgard mgd_apache.c
> gcc -DLINUX=2 -DTARGET="httpsd" -DUSE_HSREGEX -DUSE_EXPAT
> -I../lib/expat-lite -DNO_DL_NEEDED -DAPACHE_SSL -O6 -mpentiumpro
> -fno-strength-reduce -I/usr/local/apache/include -DHAVE_LIBMIDGARD=1
> -DHAVE_MIDGARD_INIT=1 -DHAVE_MIDGARD_PARSER=1 -DHAVE_MIDGARD_H=1 -c
> mgd_apache.c
> In file included from mgd_apache.c:1:
> mgd_apache.h:4: httpd.h: No such file or directory
> mgd_apache.h:5: http_log.h: No such file or directory
> apxs:Break: Command failed with rc=65536
> make: *** [mgd_apache.o] Error 1
Are httpd.h and http_log in /usr/local/apache/include?
> It seems to be unable to find my apache libs. So I thought I will give it
> a try and include all the possible paths where the required files can be
> found by editing the Makefile and adding in :-
>
> LIB= -L/usr/lib/mysql -L/usr/local/lib -L/usr/lib
> -L/opt/src/apache_1.3.12/src/lib -I/opt/src/apache_1.3.12/src/include
> -I/opt/src/apache_1.3.12/src/os/unix -I/opt/src/openssl-0.9.5a/include
> -lglib -lmidgard
That would work but these header files really should be where apxs
says they are.
> And when I tried compiling again, it no longer complains of missing files
> but :-
> mgd_apache.c
> -o mgd_apache.so mgd_apache.o -L/usr/lib/mysql -L/usr/local/lib
> -L/usr/lib -L/opt/src/apache_1.3.12/src/lib -lglib -lmidgard
> apxs:Break: Command failed with rc=16711680
> make: *** [mgd_apache.o] Error 1
>
> Do you have any idea how to over come it?
http://www.midgard-project.org/manual/faq.installing.html#FAQ.INSTALLING.APXS-BREAK
> I see... btw, can you tell me the URL where I can find the info about
> installing mod_midgard statically? I was looking at the installation
> guide and it just mentioned slightly that it can be compiled statically
> and not other instructions.
http://www.midgard-project.org/manual/installation.static-modules.html
Emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]