linux(Ubuntu)上的一些环境搭建
python2安装
wget https://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz
tar xvzf Python-2.7.1.tgz && cd Python-2.7.1
./configure
make & make install
cp /usr/python2.7 /usr/python
openssl安装
//下载
git clone https://gitee.com/huangleizzz/libevent.git
mkdir build && cd build
cmake ..
boost安装
//官网下载
wget https://dl.bintray.com/boostorg/release/1.76.0/source/boost_1_76_0.tar.gz
tar -xvfz boost_1_76_0.tar.gz
cd boost_1_76_0/
./bootstrap.sh
./b2
./b2 install
msgpack安装
先下载msgpack代码(不知道为啥github不能clone, 需要的email我: 1455205153@qq.com)
cmake -DMSGPACK_CXX17=ON .
make
sudo make install
mbedtls安装
git clone https://hub.fastgit.org/ARMmbed/mbedtls.git
cd mbedtls/
make SHARED=1
sudo make install
libevent安装
git clone https://gitee.com/huangleizzz/libevent.git
cd libevent/
mkdir build && cd build
cmake ..
make
make verify # (optional)
make install