Merge branch 'master' into dev_zhulin

This commit is contained in:
shzhulin3 2021-08-27 15:10:57 +08:00
commit be0f2d388f

View File

@ -1,6 +1,25 @@
#!/bin/sh #!/bin/sh
# install - install search_local # install - install search_local
: '
由于检索存储层依赖rocksdb所以编译时需要满足以下前置配置
1CentOS 7.x
2gcc 4.8
3Cmake版本需要大于等于3.6.2
4安装gflagsgoogle开源的一套命令行参数解析工具支持从环境变量和配置文件读取参数
安装命令:
git clone https://github.com/gflags/gflags.git
cd gflags
git checkout -b 2.2 v2.2.2
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_SHARED_LIBS=ON -DGFLAGS_NAMESPACE=google -G "Unix Makefiles" .
make && make install
sudo ldconfig
sudo ln -s /usr/local/lib/libgflags.so.2.2 /lib64
安装后需要将gflags的包含路径添加到你的CPATH环境变量中
5安装rocksdb依赖库zlibbzip2lz4snappyzstandard
sudo yum install -y snappy snappy-devel zlib zlib-devel bzip2 bzip2-devel lz4-devel libasan openssl-devel
'
localdir=`pwd` localdir=`pwd`
srcdir="$localdir/src" srcdir="$localdir/src"