Quoting Emiliano <[EMAIL PROTECTED]>:
> Chen Shiyuan wrote:
>
> > *** Warning: This library needs some functionality provided by
> > -lmysqlclient.
> > *** I have the capability to make that library automatically
> link in when
> > *** you link to this library. But I can only do this if you
> have a
> > *** shared version of the library, which you do not appear to
> have.
> > *** The inter-library dependencies that have been dropped here
> will be
> > *** automatically added whenever a program is linked with this
> library
> > *** or is declared to -dlopen it.
>
> You'll see this warning if you use static libraries.
>
> > When I tried to compile mod_midgard-1.4beta5a, I got the
> following error
> > message when doing a ./configure :-
>
> Configure isn't entirely perfect yet. Fetch the new mod_midgard
> from
> the midgard site, I think it will work better.
I just downloaded midgard-lib-1.4beta5a-1 and mod_midgard-1.4beta5a-1 .
midgard-lib-1.4beta5a-1 compiled just fine without any problems.
When I did a ./configure for mod_midgard-1.4beta5a-1 , it didn't give me
any errors :-
server:mod_midgard-1.4beta5a-1# ./configure
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking for apxs... apxs
checking for gcc... gcc
checking whether the C compiler (gcc -O6 -mpentiumpro
-fno-strength-reduce -I/usr/lib/glib/include ) works... yes
checking whether the C compiler (gcc -O6 -mpentiumpro
-fno-strength-reduce -I/usr/lib/glib/include ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for /etc/mandrake-release... no
checking for mgd_connect in -lmidgard... yes
checking for mgd_init in -lmidgard... yes
checking for mgd_select_parser in -lmidgard... yes
checking how to run the C preprocessor... gcc -E
checking for midgard.h... yes
checking for working const... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
but when I tried to compile it via "make", 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
make: apxs: Command not found
make: *** [mgd_apache.o] Error 127
I am currently running on RedHat Linux 6.2 . However, I am not using the
apache.i386.rpm that came with RedHat but instead compiled a totally
non-modular version by getting the tarballs and recompiling. My main
apache files are in /usr/local/apache and apxs is found at
/usr/local/apache/bin/apxs :-
server:mod_midgard-1.4beta5a-1# ls -l /usr/local/apache/bin/apxs
-rwxr-xr-x 1 root root 20522 Jul 14 22:21
/usr/local/apache/bin/apxs
While the source files which I used are under /opt/src/apache_1.3.12 .
I tried to run ./configure --with-apache=/usr/local/apache or ./configure
--wth-apache=/opt/src/apache_1.3.12 and so on so forth but it still gave
me the bother error message.
Do you have any idea what I have done wrong? BTW, from the docs, it
mentioned that mod_midgard can be statically compiled into the Apache
binary instead of building it as a dynamic module.
Do you have any idea how I can compile mod_midgard statically?
Many thanks in advance!
--
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]