在ubuntu17.04 上编译安裝最新版 gnu global (gtags)

官方已经发布到了 6.5.6 版了.

方法

安装编译所依赖的包:

sudo apt-get build-dep global
sudo apt-get install libncurses5-dev libncursesw5-dev

从gnu global 官方下載最新的) tar 包并解压。

./configure --with-sqlite3
make -j4
make check
sudo make install
sudo make installcheck

Ok,大功告成。
可用 global --version 检查一下版本。

成功提示如下:

kelvin@gnux:~/tools/global-6.5.6> global --version             
global (GNU GLOBAL) 6.5.6
Copyright (c) 1996-2016 Tama Communications Corporation
License GPLv3+: GNU GPL version 3 or later <http://www.gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

添加新评论

top