git - 将 git 升级到 1.8.1.5 失败

标签 git ubuntu upgrade libcurl

在 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)

谁能帮我找到答案?

最佳答案

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

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

相关文章:

Python - 无法升级 6,卸载以前的版本时出现问题

android - 如何将 android 项目从 API 18 升级到 21

mysql - phpMyAdmin - 错误您应该升级到 MySQL 5.5.0 或更高版本

r - 具有多个包和开发人员的 Big R 项目 : Best setup for easy version controll based on packages

混帐狂欢 : Launch Application via Alias without hanging Bash (WIndows)

php - git push php 和主机 key 验证失败

linux - 安装 usblib 包 - Ubuntu

php - 如何在官方 docker php 镜像上以非 root 用户身份运行 apt php

运行命令 apt update (tensorflow/tensorflow :1. 5.0-devel-gpu-py3) 时,Docker 容器卡在 0% [Working]

git - RestKit 与 Xcode4 但不作为 GitHub 子模块