<div dir="ltr">Hi All,<br><br>I successfully built PostgreSQL from source on Linux (Centos 7) using the following:<br>./configure --prefix=/home/nagispg/local/pgsql --with-libxml --with-libxslt<br><br>Prior to this I had installed the xml and xslt packages (amongst others) using:<br>yum install libxml2-devel<br>yum install libxslt-devel<br><br>However, when I try to store XML data in a table I get an error. The log file states that I need to rebuild PostgreSQL with --with-libxml.<br><br>When I run pg_config I get the following output:<br>BINDIR = /home/nagispg/local/pgsql/bin<br>DOCDIR = /home/nagispg/local/pgsql/share/doc<br>HTMLDIR = /home/nagispg/local/pgsql/share/doc<br>INCLUDEDIR = /home/nagispg/local/pgsql/include<br>PKGINCLUDEDIR = /home/nagispg/local/pgsql/include<br>INCLUDEDIR-SERVER = /home/nagispg/local/pgsql/include/server<br>LIBDIR = /home/nagispg/local/pgsql/lib<br>PKGLIBDIR = /home/nagispg/local/pgsql/lib<br>LOCALEDIR = /home/nagispg/local/pgsql/share/locale<br>MANDIR = /home/nagispg/local/pgsql/share/man<br>SHAREDIR = /home/nagispg/local/pgsql/share<br>SYSCONFDIR = /home/nagispg/local/pgsql/etc<br>PGXS = /home/nagispg/local/pgsql/lib/pgxs/src/makefiles/<a href="http://pgxs.mk">pgxs.mk</a><br>CONFIGURE = '--prefix=/home/nagispg/local/pgsql'<br>CC = gcc<br>CPPFLAGS = -DFRONTEND -D_GNU_SOURCE<br>CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -O2<br>CFLAGS_SL = -fpic<br>LDFLAGS = -L../../src/common -Wl,--as-needed -Wl,-rpath,'/home/nagispg/local/pgsql/lib',--enable-new-dtags<br>LDFLAGS_EX = <br>LDFLAGS_SL = <br>LIBS = -lpgcommon -lpgport -lz -lreadline -lrt -lcrypt -ldl -lmĀ  <br>VERSION = PostgreSQL 9.6.2<br><br>From the above, the LIBS doesn't indicate the presence of xml or xslt (i.e -lxslt -lxml2).<br><br>Could someone point me to what I am doing wrong.<br><br></div>