在Ubuntu 10.04.4 LTS上,我使用apt-get install将git升级到了1.8.1.1
现在我下载了git-1.8.1.5.tar.gz,并且想要构建来升级git。
我已经设置了$ PATH环境变量中的.bashrc
将git升级到1.8.1.5失败
export PATH=/usr/local:$PATH
我的.bashrc源和回声$ PATH显示设置路径 '的/ usr /地方:/'
当我
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)
有人能帮助我找到一个swer?
有你安装curl(可能是libcurl4-dev)? – 2013-03-04 09:19:30
@NevikRehnel,安装libcurl4-dev,curl错误丢失。但另一个错误出现:ASCIIDOC git-add.html/bin/sh:asciidoc:找不到make [1]:*** [git-add.html]错误127 make [1]:离开目录/home/vnc/git-1.8.1.5/Documentation'make:*** [doc] error 2 – Venus 2013-03-04 09:35:46
@Venus是asciidoc的安装路径? ('asciidoc --help'返回什么?) – VonC 2013-03-04 10:34:36