The first thing after I installed ubuntu 14.04 was always to configure my programming environment, in other words to configure my emacs.
This time is to record how to fix gtags(global) problem. Gtags was the best code indexing tool in Linux, but it didn’t works in emacs with following error message:
Searching location …
/usr/bin/global: unrecognized option ’–encode-path=“ ”’
Usage: global [-aGilnqrstTvx][-e] pattern
global -c[qrsv] prefix
global -f[anqrstvx] files
global -g[aGilnoOqtvx][-e] pattern
global -I[ailnqtvx][-e] pattern
global -P[aGilnoOqtvx][-e] pattern
I need to upgrade the global package to the latest version to fix this problem, then I remove the global package first, and compile the latest source code from its website.