To build pidgin on Ubuntu linux you’re going to need a whole bunch of libs and tools. ┬áLet’s check you’ve got the base dev tools installed:

sudo apt-get install build-essential

Next the glib stuff and libxml:

sudo apt-get install libgtk2.0-dev

sudo apt-get install libxml2-dev

I’m not sure if you need this separately, however libpurple is the plugin system for Pidgin:

sudo apt-get install libpurple-dev

Finally mop up any specific pidgin dependencies that are missing:

sudo apt-get build-dep pidgin

If you haven’t already downloaded the Pidgin source get it here:

http://www.pidgin.im/download/source/

Uncompress it:

tar zxvf pidgin-sipe-1.11.2.tar.gz # change for your version

cd into the directory, then run:

./configure

make

make install

Enjoy!