Redhat – Compiling httpd/apache2 fails with link error for libexpat.la

apache-2.2httpdredhatunix

I'm trying to install httpd by compiling from source. I get the following error:

libtool: link: cannot find the library `/usr/local/apr/lib/libexpat.la'

locate libexpat does yield the following but configure seems to be looking in the wrong place. I think libtool is used to manage these links. My question is how can I specify the path to libexpat.la?

Best Answer

Take a look here:

It's the same issue, just different library, should help you.

Note for the future: it would be better to ask these kinds of questions on stackoverflow.com.