光说有毛用


centos 无法找到json-c

· by admin · Read in about 1 min · (32 Words)
centos json-c linux 

错误信息:

package ‘json-c’ not found

Did not find libjson

解决方案:

1. 确保你已经安装了json组件

sudo yum install -y json-c json-c-devel

2. 建立符号链接

sudo ln -s /lib64/pkgconfig/json-c.pc /usr/lib64/pkgconfig/json-c.pc
sudo ln -s /lib64/pkgconfig/json.pc /usr/lib64/pkgconfig/json.pc

原因分析:

可能是64位环境,pc文件放错位置了

Comments