Sublime Text 2 on an old ubuntu and libgio 2.26

Or .. How to avoid “unable to load libgio version is less than 2.26, single instance support disabled” warning message ?

libgio is part of glib, we’ll grab and compile it. You’ll need git and build-essential packages installed (perhaps other ? — autogen should tell you)

$ git clone git://git.gnome.org/glib
$ cd glib
$ git co 2.26.1

I got problems replacing ubuntu’s glib bundled version, so let’s install it on a specific dir and use it only for Sublime Text 2

$ ./autogen.sh --prefix=/opt/lib/glib2.26
$ make
$ sudo make install

edit ~/bin/st

#!/bin/bash
LD_LIBRARY_PATH=/opt/lib/glib2.26:$LD_LIBRARY_PATH /path/to/sublime/text/sublime_text $*

save and exit, then

$ chmod +x ~/bin/st
$ st
$ st

Second call should not open a new Sublime Text 2 instance

HTH

Worked for me (Ubuntu 10.04 - Sublime Text 2 Build 2051)

Notes

  1. lavaman reblogged this from mashingwachine
  2. mashingwachine posted this