搜素了一下opengrok的配置,都是使用老版本的例子,本人有使用最新版本的洁癖,因此尝试了一下,记录如下:
1. 下载并编译universal-ctags
如果没有安装git, autoconf,先安装
sudo apt install git autoconf
下载universal-ctags
git clone https://github.com/universal-ctags/ctags.git
我直接下载到了/home/huwang/Download下。
编译universal-ctags
注意:/home/huwang是我存放的目录,根据你的下载位置,自行修改。
cd /home/huwang/Download/ctags
./autogen.sh
./configure
make
编译完成后,尝试运行如下命令,
cd /home/huwang/Downloads/ctags
ls ctags
./ctags --version
运行成功,完成长征第一步。
2. 安装java 8
sudo apt install openjdk-8-jdk