git 编译报错:
http-push.c:18:19: warning: expat.h: No such file or directory
http-push.c:831: warning: type defaults to ‘int’ in declaration of ‘XML_Char’
http-push.c:831: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
http-push.c: In function ‘lock_remote’:
解决办法:
yum install expat-devel
In file included from remote-curl.c:5:
http.h:6:23: warning: curl/curl.h: No such file or directory
http.h:7:23: warning: curl/easy.h: No such file or directory
In file included from http-fetch.c:3:
http.h:6:23: warning: curl/curl.h: No such file or directory
http.h:7:23: warning: curl/easy.h: No such file or directory
解决办法:
yum install curl curl-devel
网友评论