Installation of libxml2
If you are going to run the tests, disable one test that prevents
the tests from completing:
sed -i 's/test.test/#&/' python/tests/tstLastError.py
Install libxml2 by running the
following commands:
./configure --prefix=/usr \
--disable-static \
--with-history \
--with-python=/usr/bin/python3 &&
make
If you downloaded the testsuite, issue the following command:
tar xf ../xmlts20130923.tar.gz
To test the results, issue: make
check > check.log. A summary of the results can
be obtained with grep -E
'^Total|expected' check.log. If Valgrind-3.16.1 is
installed and you want to check memory leaks, replace check with check-valgrind.
Note
The tests use http://localhost/ to test parsing of
external entities. If the machine where you run the tests serves
as a web site, the tests may hang, depending on the content of
the file served. It is therefore recommended to shut down the
server during the tests, as the root
user:
systemctl stop httpd.service
Now, as the root
user:
make install
Command Explanations
--disable-static
: This
switch prevents installation of static versions of the libraries.
--with-history
: This switch
enables Readline support when
running xmlcatalog or
xmllint in shell
mode.
--with-python=/usr/bin/python3
:
Allows building the libxml2 module with Python3 instead of Python2.
--with-icu
: Add this switch if you have
built ICU-67.1, for better unicode support.
--with-threads
: Add this switch to
enable multithread support.