部署安装OpenGrok {O这里是在ubuntu系统上搞的,正式环境使用的CentOS。
CentOS 上可能遇到的问题
- 依赖环境的参数不同
Building with configure (*nix including GNU/Linux)
# on Centos: diff with Fedora on python3-docutils vs. python3-docutils-doc
sudo yum install -y \
gcc make \
pkgconfig autoconf automake \
python3-docutils-doc \
libseccomp-devel \
jansson-devel \
libyaml-devel \
libxml2-devel
- centOS上默认的git版本检查
git --version
为git version 1.8.3.1
,使用opengrok创建indexer的时候回报错——官方issue #131:seeing lots of warning messages for unknown date format with older Git
17:23:31 WARNING: GitRepository not working (missing binaries?): xxx
17:23:31 WARNING: Failed to determineCurrentVersion for xxx: java.io.IOException: fatal: unknown date format iso8601-strict
Install Latest Git ( Git 2.x ) on CentOS 7
- 卸载旧git
sudo yum remove git*
- 添加endpoint源
sudo yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm
- 安装新git
sudo yum install git
- 检查版本:
git version 2.24.1
300+GB的文件……白瞎了。应该先走通最小场景再折腾,ε=(´ο`*)))唉
网友评论