Build mod_proxy_html on UNIX 

Joined:
04/19/2010
Posts:
75

June 23, 2010 20:42:12    Last update: June 23, 2010 20:52:33
Compile mod_proxy_html from source code.

Prerequisite: Apache httpd installed on system with header files.

Command:
# /usr/local/apache2/bin/apxs -i -c -I/usr/local/include/libxml2 -I. -L/usr/local/lib mod_proxy_html.c


Output:
/usr/local/apache2/build/libtool --silent --mode=compile gcc -prefer-pic   -DSOLARIS2=10 -D_POSIX_PTHREAD_SEMANTICS 
-D_REENTRANT -D_LARGEFILE64_SOURCE -g -O2 -I/usr/local/apache2/include  -I/usr/local/apache2/include   -I/usr/local
/apache2/include  -I/usr/local/include/libxml2 -I.  -c -o mod_proxy_html.lo mod_proxy_html.c && touch mod_proxy_html.slo
/usr/local/apache2/build/libtool --silent --mode=link gcc -o mod_proxy_html.la  -L/usr/local/lib -rpath 
/usr/local/apache2/modules -module -avoid-version    mod_proxy_html.lo
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/apache2/build/libtool' mod_proxy_html.la /usr/local/apache2/modules
/usr/local/apache2/build/libtool --mode=install cp mod_proxy_html.la /usr/local/apache2/modules/
cp .libs/mod_proxy_html.so /usr/local/apache2/modules/mod_proxy_html.so
chmod +x /usr/local/apache2/modules/mod_proxy_html.so
cp .libs/mod_proxy_html.lai /usr/local/apache2/modules/mod_proxy_html.la
cp .libs/mod_proxy_html.a /usr/local/apache2/modules/mod_proxy_html.a
chmod 644 /usr/local/apache2/modules/mod_proxy_html.a
ranlib /usr/local/apache2/modules/mod_proxy_html.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/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
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 755 /usr/local/apache2/modules/mod_proxy_html.so
#
Share |
| Comment  | Tags