or download this
perl Makefile.PL LIBS='-L/usr/local/lib -lxml2 -lz -lpthread -liconv -
+lm' INC='-I/usr/local/include/libxml2' DEBUG=1
Set up build environment without MacOSX10.4u SDK (will build native bi
+naries)
...
http://xmlsoft.org/
If you install via RPMs, make sure you also install the -devel
RPMs, as this is where the headers (.h files) are.