简体   繁体   中英

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.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM