以安装libjson-c为例子。
https://segmentfault.com/a/1190000012017022 转载
git clone https://github.com/json-c/json-c.git
$ cd json-c/
$ ./autogen.sh
$ ./configure --prefix=xxx
$ make
$ make install
指定 安装路径为 /opt/json-c
./configre --prefix ==/opt/json-c
安装完后 ,设置软连接
ln -s 源文件(库的真实路径) 目标文件(新指定的不存在的文件 一个软连接文件)
ln -s /opt/json-c/libjson.so /usr/local/lib/libjson