git源码编译报错解决

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容