以下库将安装到/usr/local/lib,头到/usr/local/include
hiredis的安装
下载https://github.com/redis/hiredis
解压
cd hiredis
make
make install
linux下正确安装jsoncpp
scons下载地址:wget http://prdownloads.sourceforge.NET/scons/scons-2.2.0.tar.gz
Jsoncpp 下载地址 http://sourceforge.net/projects/jsoncpp/files/latest/download?_test=goal
#tar -zxvf scons-2.1.0.tar.gz
#cd scons-2.1.0
#python setup.py install
#cd ..
#tar -zxvf jsoncpp-src-0.5.0.tar.gz
#cd jsoncpp-src-0.5.0
#scons platform=linux-gcc
#cp libs/linux-gcc-7/* /usr/local/lib
#cp -r /home/lgl/下载/jsoncpp/jsoncpp-src-0.5.0/include/json /usr/local/include/json
来源:oschina
链接:https://my.oschina.net/u/3649283/blog/2907038