在 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
我来源 .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)
谁能帮我找到答案?