M BUZZ CRAZE NEWS
// general

how to install libxml2 in ubuntu 15.10

By Jessica Wood

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.

3 Answers

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
2

This tutorial will tell you exactly how to do it:

In summary, the steps are just the same as any other software installation:

  1. Locate where you can get the latest version of the software. (From google, libxml2 webpage is here: . From there, you can find the ftp location where you can download the software. Notice the latest version available).

  2. Download that latest version's .tar.gz file using wget, and extract it using tar command.

  3. 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
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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy