how to install libxml2 in ubuntu 15.10
I am having Ubuntu 15.10 Desktop. I want to install libxml2. So any one tell me how i can install it. What i need to do to install libxml2 in my laptop. I am almost new to Linux, using it at least from 5-6 months.
Solution 1:
There's a libxml2
package for that. You can install it with:
sudo apt-get install libxml2
If you want to compile software from source based on libxml2 you need the development files:
sudo apt-get install libxml2-dev
Solution 2:
This tutorial will tell you exactly how to do it: https://geeksww.com/tutorials/libraries/libxml/installation/installing_libxml_on_ubuntu_linux.php
In summary, the steps are just the same as any other software installation:
Locate where you can get the latest version of the software. (From google, libxml2 webpage is here: http://www.xmlsoft.org/downloads.html. From there, you can find the ftp location where you can download the software. Notice the latest version available).
Download that latest version's .tar.gz file using wget, and extract it using tar command.
-
Compile and install the software by typing these terminal commands from within the extracted folder:
./configure make sudo make install
Update: Another way to do it, per the hint from David Foerster's answer, is to simply use apt-get to install the package for you rather than compiling and installing it yourself. The package you want here is probably either libxml2 or libxml2-dev. You can search for the package you want by typing
apt-cache search libxml2
Install the package using the typical apt-get method:
sudo apt-get install libxml2
or
sudo apt-get install libxml2-dev
Solution 3:
Find the name of the package you want to install with dpkg -l libxml\*
. On my system (YMMV) it shows 36 packages related to libxml
. sudo apt-get install
the packages you like.