最近想在erdhat 9.0上安装git,下载了git-1.7.1的源码编译。
(1)遇到了krb5.h找不到的问题,后来解决办法是:
[root@RedHat git-1.7.1]# ln -s /usr/kerberos/include/profile.h /usr/include/profile.h
[root@RedHat git-1.7.1]# ln -s /usr/kerberos/include/krb5.h /usr/include/krb5.h
[root@RedHat git-1.7.1]# ln -s /usr/kerberos/include/com_err.h /usr/include/com_err.h
当然,也可以修改git相关源代码,指明文件所在路径。
(2)继续出现
remote-curl.c: In function `post_rpc':
remote-curl.c:393: `CURLOPT_ENCODING' undeclared (first use in this function)
remote-curl.c:393: (Each undeclared identifier is reported only once
remote-curl.c:393: for each function it appears in.)
make: *** [remote-curl.o] Error 1
解决办法:有点粗鲁,直接注释掉那行代码。
阅读(2751) | 评论(1) | 转发(0) |