bclzvs / serf

Automatically exported from code.google.com/p/serf
0 stars 0 forks source link

Serf fails to compile because it "can't locate file for: -lexpat" #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Here is the configure information that I used for compiling serf:

LDFLAGS="-L/usr/local/expat/include" ./configure --prefix=/usr/local/serf
--with-apr=/usr/local/apache/bin/apr-1-config
--with-apr-util=/usr/local/apache/bin/apu-1-config
--with-openssl=/usr/local/openssl

I compiled my own version of expat at (/usr/local/expat) but the
compilation fails to find it.  How do I tell the configure script where it is?

I am compiling Serf version 0.2.0 and I'm running on a PowerMac G5 with Mac
OS X 10.4.11.

Original issue reported on code.google.com by mactreeb...@gmail.com on 13 Sep 2008 at 6:17

Attachments:

GoogleCodeExporter commented 9 years ago
Your LDFLAGS are wrong.  It likely needs to be:

-L/usr/local/expat/lib

(Plus, you need to set CPPFLAGS to -I/usr/local/expat/include as well.)

However, if you have a custom version of expat, if you tell APR-util via
--with-expat, serf will then pick it up automagically.  If you have an expat 
conflict
between serf and APR-util, bad things may happen.

Hope this helps!

Original comment by justin.e...@gmail.com on 30 Dec 2008 at 7:11