Q:

How to install libxml2 in unix

can anybody tell me how to install libxml2 in Unix? I am using windows for browsing net and Unix for writing my C programs. I also dont know whether it is already installed. Please tell me guys how to install libxml2 and use it for parsing.

A:

Here's a way to install from source - given by good folks at Cypress project.
https://github.com/projectcypress/cypress/wiki/Cypress-v2.0-Installation-Guide
---- for easy reading: copied from above URL ----

cd /tmp
wget ftp://xmlsoft.org/libxml2/libxml2-2.8.0.tar.gz
tar xzf libxml2-2.8.0.tar.gz
cd libxml2-2.8.0/
./configure
make
sudo make install
cd

A:

Read the installation instructions that come with libxml2 in the file INSTALL.
If you find any file or directory with the substring libxml2 in /usr/local/include or /usr/local/lib (such as /usr/local/lib/libxml2.so) then it is already installed.
Depending on the particular Unix brand (which you did not tell us), you might need to look in other directories as well.

