foexle
Kaiser
Hi Leute,
ich versuche gerade ein Modul zu installieren für Apache2.
Modulname xsendfile.
die Libdir für den Linker ist aber gestezt in /etc/ld.so.conf.d/ dieser pfad ist included in /etc/ld.so.conf
Was mache ich falsch ? Habe ich etwas übersehen ?
Greetz
edit: Problem gelöst, manuell angelegtes Load vom Modul.
ich versuche gerade ein Modul zu installieren für Apache2.
Modulname xsendfile.
Code:
apxs2 -cia mod_xsendfile.c
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -c -o mod_xsendfile.lo mod_xsendfile.c && touch mod_xsendfile.slo
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static x86_64-linux-gnu-gcc -o mod_xsendfile.la -rpath /usr/lib/apache2/modules -module -avoid-version mod_xsendfile.lo
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' mod_xsendfile.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install cp mod_xsendfile.la /usr/lib/apache2/modules/
cp .libs/mod_xsendfile.so /usr/lib/apache2/modules/mod_xsendfile.so
cp .libs/mod_xsendfile.lai /usr/lib/apache2/modules/mod_xsendfile.la
PATH="$PATH:/sbin" ldconfig -n /usr/lib/apache2/modules
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib/apache2/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 644 /usr/lib/apache2/modules/mod_xsendfile.so
apxs:Error: Activation failed for custom /etc/apache2/httpd.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..
Was mache ich falsch ? Habe ich etwas übersehen ?
Greetz
edit: Problem gelöst, manuell angelegtes Load vom Modul.
Zuletzt bearbeitet: