简体   繁体   English

如何在unix中安装libxml2

[英]How to install libxml2 in unix

can anybody tell me how to install libxml2 in Unix? 任何人都可以告诉我如何在Unix中安装libxml2? I am using windows for browsing net and Unix for writing my C programs. 我正在使用windows浏览网络和Unix来编写我的C程序。 I also dont know whether it is already installed. 我也不知道它是否已安装。 Please tell me guys how to install libxml2 and use it for parsing. 请告诉我们如何安装libxml2并将其用于解析。

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 https://github.com/projectcypress/cypress/wiki/Cypress-v2.0-Installation-Guide

---- for easy reading: copied from above URL ---- ----易于阅读:从上面的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 . 阅读文件INSTALL libxml2附带的安装说明。 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. 如果在/usr/local/include/usr/local/lib (例如/usr/local/lib/libxml2.so )中找到带有子字符串libxml2文件或目录,则它已经安装。

Depending on the particular Unix brand (which you did not tell us), you might need to look in other directories as well. 根据特定的Unix品牌(您没有告诉我们),您可能还需要查看其他目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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