X-MSG-IM-系統依賴的第三方library編譯

X-MSG-IM系統核心網元編譯時依賴較多第三方庫, 較爲繁瑣. 這是爲了在部署時更方便, 更少地依賴宿主系統環境.git

除非你知道本身在作什麼, 不然不要變動這些庫的版本.

  • zlib-1.2.11編譯
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
  • libuuid-1.0.3編譯
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
  • openssl-1.1.1d編譯
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
  • protobuf-3.5.1編譯:
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
相關文章
相關標籤/搜索