【介绍】
官网:http://www.digip.org/jansson/
参考:https://jansson.readthedocs.io/en/2.7/gettingstarted#compiling-and-installing-jansson
参考:http://www.cnblogs.com/etangyushan/p/3724017
【安装】
最高版本:jansson-2.7
wget http://www.digip.org/jansson/releases/jansson-2.7.tar.gz && tar -zxvf jansson-2.7.tar.gz && cd jansson-2.7 && ./configure && make && make check && make install
输出:
... Libraries have been installed in: /usr/local/lib ... /usr/bin/install -c -m 644 jansson.h jansson_config.h '/usr/local/include' ... /usr/bin/install -c -m 644 jansson.pc '/usr/local/lib/pkgconfig' ...
更新系统动态连接库配置:
echo /usr/local/lib >> /etc/ld.so.conf && ldconfig
安装完成。
相关文件路径:
/usr/local/include/jansson.h /usr/local/lib/libjansson.so.4.7.0 /usr/local/lib/pkgconfig/jansson.pc