2023-10-17 16:20:13 39阅读
检查依赖是否安装以及版本
rpm -qa | egrep 'gcc-c++|glibc-devel|scons'
升级GCC需要一些时间,先在编译环境安装所有依赖
从github官网clone对应源码
克隆语句
git clone ****** --branch v3.6 --single-branch [<folder>]
buildscripts/scons.py all -j 32 MONGO_VERSION=x.y.z
目前所用
sudo chmox 775 buildscripts/scons.py
buildscripts/scons.py mongod -j 64 --ssl --hotbackup --audit --opt='on' MONGO_VERSION=3.4.17 LINKFLAGS='-static-libstdc++'
编译后文件大
The raw build produces binaries that contain the debug symbols and you can get rid of them by using the strip command like this:
strip mongod
2023-10-17 16:20:13 39阅读
检查依赖是否安装以及版本
rpm -qa | egrep 'gcc-c++|glibc-devel|scons'
升级GCC需要一些时间,先在编译环境安装所有依赖
从github官网clone对应源码
克隆语句
git clone ****** --branch v3.6 --single-branch [<folder>]
buildscripts/scons.py all -j 32 MONGO_VERSION=x.y.z
目前所用
sudo chmox 775 buildscripts/scons.py
buildscripts/scons.py mongod -j 64 --ssl --hotbackup --audit --opt='on' MONGO_VERSION=3.4.17 LINKFLAGS='-static-libstdc++'
编译后文件大
The raw build produces binaries that contain the debug symbols and you can get rid of them by using the strip command like this:
strip mongod