João Paulo Cercal

Staff Security Engineer at LastPass

  • DevOps

Downloading and Installing the libxml library

  • Share on Facebook
  • Share on Twitter
  • Share on LinkedIn

Read this article in

XML is a standard for building structured documents based on markup containing the data.

The libxml2 library was written in pure C to allow easy reuse across various platforms, including embedded systems.

Let’s get our hands dirty!

Visit the website and download the latest stable version:

http://www.xmlsoft.org/downloads.html

Open the terminal and enter the directory where the library was saved:

1
$ cd ./Download/

Extract the file into the "/opt" directory:

1
$ sudo tar xvfz libxml2-git-snapshot.tar.gz -C /opt/

Enter the directory where the file was extracted:

1
$ sudo cd /opt/libxml2-2.7.8/

For a standard installation run the command below, you can change the installation directory if you want.

1
$ sudo ./configure --prefix=/usr/local/libxml

Now just install:

1
$ sudo make && make install