出错mlogc.c:32:23: error: curl/curl.h: No such file or directory

时间:2022-02-16 22:52:41

      出现下列错误:

mlogc.c:32:23: error: curl/curl.h: No such file or directory
mlogc.c:1091: error: expected ‘)’ before ‘*’ token
mlogc.c: In function ‘logc_init’:

     出错原因:缺少libcurl-dev or libcurl-devel

     centOS上安装依赖包:

yum install libcurl-dev libcurl-devel