X-MSG-IM系统核心网元编译时依赖较多第三方库, 较为繁琐. 这是为了在部署时更方便, 更少地依赖宿主系统环境.
理想的编译环境是:
fedora 31
,centos 7, 8 or later
.
wget http://www.zlib.net/zlib-1.2.11.tar.gz
tar -xzvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
export CFLAGS="-O3"
./configure --prefix=/home/dev5/tools/zlib-1.2.11 --static
make;make install
wget https://nchc.dl.sourceforge.net/project/libuuid/libuuid-1.0.3.tar.gz
tar -xzvf libuuid-1.0.3.tar.gz
cd libuuid-1.0.3
export CFLAGS="-O3"
./configure --prefix=/home/dev5/tools/libuuid-1.0.3
make;make install
wget http://ftp.openssl.org/source/openssl-1.1.1d.tar.gz
tar -xzvf openssl-1.1.1d.tar.gz
cd openssl-1.1.1d
export CFLAGS="-O3"
./config --prefix=/home/dev5/tools/openssl-1.1.1d
make;make install
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.5.1/protobuf-cpp-3.5.1.tar.gz
tar -xzvf protobuf-cpp-3.5.1
cd protobuf-cpp-3.5.1
export CXXFLAGS="-O3"
./configure --prefix=/home/dev5/tools/protobuf-3.5.1
make;make install