A source RPM package of expat can be found at
http://sourceforge.net/projects/expat/
.
Note
that
if
you
are
using
Apache-1.3.7
or
later
,
you
already
have
the
required
expat
library
.
Simply
configure
PHP
using
--with-xml
(
without
any
additional
path
)
and
it
will
automatically
use
the
expat
library
built
into
Apache
.
On
UNIX
,
run
configure
with
the
--with-xml
option
.
The
expat
library
should
be
installed
somewhere
your
compiler
can
find
it
.
You
may
need
to
set
CPPFLAGS
and
LDFLAGS
in
your
environment
before
running
configure
if
you
have
installed
expat
somewhere
exotic
.
Build
PHP
.
Tada
!
That
should
be
it
.