How To Install Glib 2.36.3 on Ubuntu and Linux Mint

Hello Linux Geeksters. Yesterday, the Glib library for the Gnome 3.8 desktop environment got the third update, fixing some bugs.

How To Install Glib 2.36.3 on Ubuntu and Linux Mint

I have managed to install it successfully on Ubuntu 13.04 Raring Ringtail and Linux Mint 15 Olivia, but this should work also on Ubuntu 12.10 Quantal Quetzal, Ubuntu 12.04 Precise Pangolin, Linux Mint 14 Nadia and Linux Mint 13 Maya.

Since I install daily a lot of stuff from source, I may have many dependencies already installed on my system. If you get some dependency errors while ./configure, make and make install, apt-cache search the needed packages and install them by hand.

So, if you want to install GLib 2.36.3 on your system, you have to compile it from sources. Like this:

Download the glib*.xz:

$ mkdir ~/work
$ cd ~/work
$ wget -c http://ftp.acc.umu.se/pub/GNOME/sources/glib/2.36/glib-2.36.3.tar.xz

Extract the archive and cd into the folder:

$ tar -xJvf glib-2.36.3.tar.xz
$ cd ~/work/glib-2.36.3

Install the needed dependencies required by ./configure:

$ sudo apt-get install libffi-dev

Make the proper configurations:

$ ./configure

Install the needed dependencies required by make:

The make process requires automake-1.13, autoconf, m4 and perl,  which can’t be found in any repository, so we have to make an installation from sources (AGAIN). Awesome, isn’t it?

Installing automake:

$ cd ~/work
$ wget -c ftp://ftp.gnu.org/gnu/automake/automake-1.13.tar.xz -O ~/work/automake-1.13.tar.xz
$ tar -xJvf ~/automake-1.13
$ cd ~/work/automake-1.13
$ ./configure
$ make
$ sudo make install

Installing autoconf:

$ wget -c http://ftp.gnu.org/gnu/autoconf/autoconf-latest.tar.xz -O ~/work/autoconf-latest.tar.xz
$ tar -xJvf autoconf-latest.tar.xz
$ cd ~/work/autoconf-2.69
$ ./configure
$ make
$ sudo make install

Installing m4:

$ wget -c http://ftp.gnu.org/gnu/m4/m4-latest.tar.xz -O ~/work/m4-latest.tar.xz
$ tar -xJvf m4-latest.tar.xz
$ cd ~/work/m4-1.4.16
$ ./configure
$ make
$ sudo make install

Installing perl:

Download Perl For 32 bit systems:

$ wget -c downloads.activestate.com/ActivePerl/releases/5.16.3.1603/ActivePerl-5.16.3.1603-i686-linux-glibc-2.3.6-296746.tar.gz -O ~/work/ActivePerl-5.16.3.1603-i686-linux-glibc-2.3.6-296746.tar.gz

Download Perl For 64 bit systems:

$ wget -c downloads.activestate.com/ActivePerl/releases/5.16.3.1603/ActivePerl-5.16.3.1603-x86_64-linux-glibc-2.3.5-296746.tar.gz -O ~/work/ActivePerl-5.16.3.1603-x86_64-linux-glibc-2.3.5-296746.tar.gz

Install Perl:

$ tar -xzvf ActivePerl-5.16.3.1603-*-linux-glibc-2.3.5-296746.tar.gz
$ cd ActivePerl-5.16.3.1603-*-linux-glibc-2.3.5-296746
$ sudo sh install.sh

Agree with the licence policies, select where you want to install perl, and you’re done.

Compile the sources:

$ cd ~/work/glib-2.36.3
$ make

Install the new Glib:

$ sudo make install

This is it. After struggling in the dependency hell, I have finally installed it. VICTORY!!!

Tagged with: , , , , , , , , , , , , , , ,
Posted in The Linux and Unix Articles!
4 comments on “How To Install Glib 2.36.3 on Ubuntu and Linux Mint
  1. Marcos Kintschner says:

    I can’t thank you enough for helping to me make it through the dependency limbo. ;D

  2. Anurag Prabhakar says:

    This is awesome stuff. Thanks

  3. Amy Bruderer says:

    Thank you so much for this install guide. It has been extremely helpful. 😀

  4. Steven Tay says:

    this error was happening after compile the sources:

    $ cd ~/work/glib-2.36.3

    $ make

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!