AW: Compile apache2.4 with mod_proxy_html/libxml2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

today, I found some time to check your comments and they worked very well! I also needed to set the envvars, without them Apache was not able to find the libs during make, configure worked without setting the envvars.

Thanks & Cheers,
André

-----Ursprüngliche Nachricht-----
Von: Rainer Jung [mailto:rainer.jung@xxxxxxxxxxx] 
Gesendet: Dienstag, 14. April 2015 17:24
An: users@xxxxxxxxxxxxxxxx
Betreff: Re:  Compile apache2.4 with mod_proxy_html/libxml2

Am 14.04.2015 um 16:34 schrieb Andre.Wendel@xxxxxx:
> Hello,
>
> today I tried to compile the current apache 2.4.12 together with
> mod_proxy_html and xml2enc, but I ran into some problem with libxml2,
> which is currently not installed on the system and I’m not able to
> install the library in the system.
>
> So what I did was to compile libxml2 as shared library with
>
> ./configure --prefix=/<apache-folder>/libxml2 --enable-shared=yes
> --with-python=no
>
> After that I tried to build the apache with the following parameters:
>
> ./configure
>
>
>
>    --enable-proxy-html \
>
>    --enable-xml2enc \
>
>    --with-libxml2=${apache_prefix}/libxml2

> I also tried the following:
>
> ./configure
>
>
>
>    --enable-proxy-html \
>
>    --enable-xml2enc \
>
>    --with-libxml2 \
>
>    --with-libxml2-include=${apache_prefix}/libxml2/include \
>
>    --with-libxml2-lib=${apache_prefix}/libxml2/lib
>
> But every time the following error comes up,
>
>
>
> checking whether to enable mod_deflate... shared
>
> checking whether to enable mod_xml2enc... checking dependencies
>
> checking for libxml2... checking for libxml2... no
>
> checking whether to enable mod_xml2enc... configure: error: mod_xml2enc
> has been requested but can not be built due to prerequisite failures
>
>
>
> Does somebody have any idea, what is the problem or which configuration
> I need to set, so that I can build the apache with mod_proxy_html
> support. But I don’t need to install libxml2 on the system? Is there any
> additional compiler setting needed?

Try

    --with-libxml2=${apache_prefix}/libxml2/include/libxml2

(in my libxml2 installation all header files are in a directory 
.../include/libxml2/libxml which should be the default layout of libxml2).

In addition set the following envvars:

MOD_XML2ENC_LDADD="-L${apache_prefix}/libxml2/lib 
-R${apache_prefix}/libxml2/lib"

export MOD_XML2ENC_LDADD

MOD_PROXY_HTML_LDADD="-L${apache_prefix}/libxml2/lib 
-R${apache_prefix}/libxml2/lib"

export MOD_PROXY_HTML_LDADD

(the -R is optional for setting the RUNPATH in the binary module file).

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux