How to Install libpurple

Installing libpurple is actually pretty easy. For this example, I will show you how to install libpurple on Ubuntu Linux using apt-get (should work on Debian as well).

In your terminal, type:

sudo apt-get install libpurple-dev

And…well…that’s it! And hopefully, libpurple was installed with no errors. However, if you do have errors, please feel free to leave a comment below.

Just as a side note, libpurple requires Glib to run. Commonly, this comes installed on Linux, however, it may not already be installed on a Windows or Mac machine. Since I have never installed Glib on Windows or Mac, I can’t tell you exactly how to do it, but if you type in “how to install glib on windows/mac” in Google, you should be able to find some helpful resources.

Of course, using apt-get is not the only way to install liburple in Linux (although it’s by far the easiest). You can also get it from the official website, where you can either choose your system type or download the source code. It is possible to install libpurple from the source code, although I highly discourage it unless you plan on modifying libpurple itself.

Roughly, to install from source, you must download the source code, cd to the directory, and do something along the lines of ./configure, make, and make install, which will take a very very long time since it must re-compile all of the source code.

Once you have installed libpurple, your system is now equipped to handle instant messaging programs, which I will explain next.

If you had any trouble installing libpurple or thought this was at all useful, please leave a comment! Thanks.

Next: Writing your first IM program with libpurple