linux下安装jsoncpp报错ZLIB_1.2.3.3 not defined

linux下安装jsoncpp参考

https://blog.csdn.net/u012254599/article/details/125857585

详细报错

运行cmake的时候报如下错误:
在这里插入图片描述
relocation error : /usr/bin/cmake:symbol gzopen64 verison ZLIB_1.2.3.3 not defined in file libz.so.1 with link time reference

解决

(1)可以试试 sudo cmake CMakeLists.txt
(2)还是不行的话:

按照这里安装zlib
https://blog.csdn.net/lushixuan12345/article/details/122545491

按照这里设置下软连接
https://www.lampchina.net/ask/mtq4otezmw.html

最后再sudo 运行命令。

你可能感兴趣的:(C++,Linux学习,linux,ZLIB,ZLIB_1.2.33)