将gedit从3.10降级到3.6
我在ubuntu 14.04和gedit 3.10
在上一篇文章中,我问为什么zencoding插件不适用于我的gedit版本。
但现在我意识到,从3.8~3.10这个列表中没有提供zencoding: https ://wiki.gnome.org/Apps/Gedit/ThirdPartyPlugins-v3.8
而在3.0~3.6的这个列表中,它是https://wiki.gnome.org/Apps/Gedit/ThirdPartyPlugins-v3.0
我怎样才能降级我的gedit版本?
make
命令在我的Ubuntu Vivid中失败。 我怀疑这些库对于Gedit 3.16来说太新了。 也许你对Trusty很幸运。
-
从这里下载最新的3.6版本
cd; wget http://ftp.gnome.org/pub/GNOME/sources/gedit/3.6/gedit-3.6.2.tar.xz
-
安装开发库
sudo apt-get build-dep gedit
-
提取存档
tar xf gedit-3.6.2.tar.xz
-
使用
--prefix=/usr/local
以保护现有安装cd gedit-3.6.2 ./configure --prefix=/usr/local
-
建立
make
-
如果前面的步骤没有错误,请通过
checkinstall
sudo make install
,而不是使用sudo make install
,checkinstall
为您创建并安装deb软件包sudu apt-get install checkinstall sudo checkinstall
-
创建桌面文件
nano ~/.local/share/applications/gedit36.desktop
添加以下行
[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