On 23/07/07, Farokh Irani <[EMAIL PROTECTED]> wrote:
>Farokh Irani wrote:
>> apxs -i -n mod_fancy mod_fancy.o config.o
>
>You don't -i'nstall a .o file. It's not a loadable module.
>
>Loadable modules are the .so (.sl/.dll/.dylib) already-linked object files.
I tried it with the .so files (apxs -i -n mod_fancy
.libs/mod_fancy.so .libs/config.so) and got the same errors:
/usr/local/apache2/bin/apxs -i -n mod_fancy .libs/mod_fancy.so .libs/config.so
/usr/local/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool' .libs/mod_fancy.so
/usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp .libs/mod_fancy.so
/usr/local/apache2/modules/
cp .libs/mod_fancy.so /usr/local/apache2/modules/mod_fancy.so
Warning! dlname not found in /usr/local/apache2/modules/mod_fancy.so.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/mod_fancy.so
/usr/local/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool' .libs/config.so
/usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp .libs/config.so
/usr/local/apache2/modules/
cp .libs/config.so /usr/local/apache2/modules/config.so
Warning! dlname not found in /usr/local/apache2/modules/config.so.
Assuming installing a .so rather than a libtool archive.
If using Apache 1.3, the magic you want is something like::
install : all
$(APXS) -i -n 'mod_wsgi' mod_wsgi.so
If using Apache 2.X, the magic you want is something like:
install : all
$(APXS) -i -n 'mod_wsgi' mod_wsgi.la
That is presuming you are using your own Makefile for some reason. If
using Makefile generated by apxs and which uses makefile rule system
supplied by Apache, you wouldn't normally need to worry about it
explicitly as it should do it the correct way.
Graham