Linux下安装libjson-c库及使用

 时间:2024-10-14 00:59:58

1、从网站获取libjson-c的源码,可使用wget,链接参考后面的参考资料

Linux下安装libjson-c库及使用

3、编译准备:【请务必确认系统中已安装gcc】禁用警告错误:sed -i s/-Werror// Makefile.in tests/Makefile.in生成Makefile:./configure --prefix=/usr --disable-static这里disable static表示以动态库的形式输出,并且安装目录到/usr/下面lib。

Linux下安装libjson-c库及使用

5、检查目标安装目录是否存在libjson:[root@TEST json-c-0.12.1]# ll /usr/lib/libjson-c.*-rwxr-xr-x 1 root root 914 Apr 23 09:01 /usr/lib/libjson-c.lalrwxrwxrwx 1 root root 18 Apr 23 09:01 /usr/lib/libjson-c.so -> libjson-c.so.2.0.2lrwxrwxrwx 1 root root 18 Apr 23 09:01 /usr/lib/libjson-c.so.2 -> libjson-c.so.2.0.2-rwxr-xr-x 1 root root 99537 Apr 23 09:01 /usr/lib/libjson-c.so.2.0.2

Linux下安装libjson-c库及使用
  • 中科电的榨汁机如何使用
  • 如何分辩女人是否对你有兴趣
  • 建设项目选址审批--办理流程图
  • 煎鸡胸肉汉堡
  • jquery改变包含指定文本td的颜色
  • 热门搜索
    七雄争霸手游攻略 脚后跟麻是怎么回事 减肥药有效吗 英雄无敌3攻略 健身房怎么减肥 玉兰油怎么样 红烧茄子的做法 杭州东站到西湖怎么走 减肥早餐怎么吃 上海外滩旅游攻略