The make
command fails in my Ubuntu Vivid. I suspect that the libraries are too new for Gedit 3.16. Maybe you have luck with Trusty.
Download the latest 3.6 version from here
cd; wget http://ftp.gnome.org/pub/GNOME/sources/gedit/3.6/gedit-3.6.2.tar.xz
Install the development libraries
sudo apt-get build-dep gedit
Extract the archive
tar xf gedit-3.6.2.tar.xz
Configure with --prefix=/usr/local
to protect your existing installation
cd gedit-3.6.2
./configure --prefix=/usr/local
Build
make
If there was no error in the previous steps, install via checkinstall
and not with sudo make install
, checkinstall
creates and installs a deb package for you
sudu apt-get install checkinstall
sudo checkinstall
Create a desktop file
nano ~/.local/share/applications/gedit36.desktop
Add the lines below
[Desktop Entry]
Name=Gedit
GenericName=Text Editor
X-GNOME-FullName=
Comment=
Exec=/usr/local/bin/gedit
Icon=gedit
Terminal=false
Type=Application
Categories=GNOME;
StartupNotify=true
X-Ubuntu-Gettext-Domain=gedit