在 Ubuntu 10.04.4 LTS 上,我使用 apt-get install 将 git 升级到 1.8.1.1
现在我下载了git-1.8.1.5.tar.gz,想构建源码升级git。
我在 .bashrc 中设置了 $PATH 环境变量

export PATH=/usr/local:$PATH

我source .bashrc,echo $PATH 显示设置的路径'/usr/local:/'
当我
make prefix=/usr/local all doc info

错误来了:
In file included from http.c:1:
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.c:1:
http.h:46: error: expected specifier-qualifier-list before ‘CURLcode’
http.h:51: error: expected specifier-qualifier-list before ‘CURL’
http.h:97: error: ‘CURL_ERROR_SIZE’ undeclared here (not in a function)
http.h: In function ‘missing__target’:
http.h:102: error: ‘CURLE_FILE_COULDNT_READ_FILE’ undeclared (first use in this function)
http.h:102: error: (Each undeclared identifier is reported only once
http.h:102: error: for each function it appears in.)
http.h:104: error: ‘CURLE_HTTP_NOT_FOUND’ undeclared (first use in this function)

谁能帮我找到答案?

最佳答案

要编译 git ,您不仅需要 curl 二进制文件,还需要开发包(我相信它在 Ubuntu 中称为 libcurl-dev 或类似的东西),以及 zlib expatgettext 开发包。要构建文档,您将需要 asccidocmakeinfodocbook2Xdblatex 程序。

关于git - 将 git 升级到 1.8.1.5 失败,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15197797/

10-11 22:47
查看更多