ubuntu 12.04安装git 1.8.11

来源:互联网 发布:水逆退散网络语啥意思 编辑:程序博客网 时间:2024/04/30 15:12

今天在ubuntu下使用sh,编译windows下使用的ffmpeg,官网http://ffmpeg.org/trac/ffmpeg/wiki/CrossCompilingForWindows

1. 发现直接使用sudo apt-get install git 安装的git版本很低。

直接上git官网 http://git-scm.com/downloads 下了最新版本1.8.1.1

2. 直接解压后运行 ./configure 然后make 然后 makeinstall,并不能顺利如愿完成。

make的时候,提示  "zlib.h No such file ordirectory"

下载zlib1.2.7,http://zlib.net/ ,然后./configure然后make 然后 make install。

3. 安装完zlib,再次运行安装git。1--> make clean2--> ./configure 3-->make

这里还有一个错误 /bin/sh: msgfmt: command not found

查看 ./configure --help,然后加上编译项 ./configure --without-tcltk,再次make

4. 这里又有错误了,提示"tclsh failed; using unoptimized loading"。 还要安装tcl

这个比较简单,sudo apt-get install gettext

之后就顺利了 make  然后make install

0 0