ubuntu android 开始git安装

 
git安装:
http://source.android.com/source/initializing.html网站提示到以下网址下载:
http://git-scm.com/download
这个网址不知怎么回事,基本打不开,所以按以下方法来安装:
先sudo apt-get install git-core curl
这样可以装一个版本,但这个版本在下载android系统的时候会提示版本过低
               git init xxxx的时候报错: fatal: git 1.7.2 or later required  或许是git版本太低,你可以自己编译最新git源码进行安装。
1、创建一个目录,存放git源码:mkdir /usr/xxx(随意)
2、进行到这个目录:cd /usr/xxx
3、git clone git://git.kernel.org/pub/scm/git/git.git先克隆一个(git clone https://github.com/git/git.git,这个方法有问题)
4、git checkout v1.7.8.2,checkout 你需要的版本
5、make prefix=/usr/local all
6、sudo make prefix=/usr/local install
7、如果出现以下错误:
git-compat-util.h:215: fatal error: openssl/ssl.h: No such file or directory  网上有说安装libssl-dev  或许你发现apt-get install libssl-dev的时候失败。这个时候你要更新一下源(/etc/apt/sources.list)
deb http://Ubuntu.cn99.com/ubuntu/ lucid main universe restricted multiverse    
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid main universe restricted multiverse    
deb http://Ubuntu.cn99.com/ubuntu/ lucid-security universe main multiverse restricted    
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid-security universe main multiverse restricted    
deb http://Ubuntu.cn99.com/ubuntu/ lucid-updates universe main multiverse restricted    
deb http://Ubuntu.cn99.com/ubuntu/ lucid-proposed universe main multiverse restricted    
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid-proposed universe main multiverse restricted    
deb http://Ubuntu.cn99.com/ubuntu/ lucid-backports universe main multiverse restricted    
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid-backports universe main multiverse restricted    
deb-src http://Ubuntu.cn99.com/ubuntu/ lucid-updates universe main multiverse restricted 

命令:apt-get update

或者下载:www.openssl.org/source/openssl-0.9.8e.tar.gz   首先:tar zxvf openssl-0.9.8e.tar.gz 然后:make make install   这个时候你得重新编译git
git$./configure --prefix=/usr;make;make install

6、或许编译的时候还会出现/bin/sh: msgfmt: command not found 只要sudo apt-get install gettext 若不能下载,记得更新上面的源。

最后:git --version  查看是不是已经安装最新的git了。Now  let's git!

ubuntu android 开始git安装的更多相关文章

  1. Ubuntu18.04下Git安装及使用

    Ubuntu 18.04 git安装配置及基本使用 git Ubuntu 准备 对Ubuntu相关资源升级 1. linux资源升级 sudo apt-get update 2. linux软件升级 ...

  2. ubuntu下git安装及使用

    ubuntu下git安装及使用   其实,好几个月前,就已经安装好了,可是一直搁置在那儿,所以密码等一些其它细节都忘的差不多了,所以今天就重新部署了一下,并开始积极使用......... 1,git ...

  3. Ubuntu 15.10 x64 安装 Android SDK

    操作系统:Ubuntu 15.10 x64 目标:安装 Android SDK 本文最后更新时间:2015-11-3 安装32位库文件 2013年9月的iPhone 5s是第一款64位手机,而Andr ...

  4. Ubuntu 14.04 AMD 64位 下 Android Studio 的安装

    Ubuntu 14.04 AMD 64位 下 Android Studio 的安装 作者:yoyoyosiyu 邮箱:yoyoyosiyu@163.com 时间:2015年8月25日 Android ...

  5. Android 手机上安装并运行 Ubuntu 12.04(转,没实测)

    设备需要root权限,并且安装了BusyBox最小 1GHz 处理器(推荐)Android 系统版本 2.1 或以上Android 设备需要自定义的ROM固件SD卡至2.5GB (安装大映像的需要3. ...

  6. Android 手机上安装并运行 Ubuntu 12.04

    ubuntu.sh脚本的原地址变动了,导致下载不了,现在更新了网盘地址.小技巧:遇到一些下载失效的时候可以试一试p2p下载工具(如 easyMule.迅雷等)试一试,说不定有人分享过~* —————— ...

  7. Ubuntu 15.10 x64 安装 Android SDK(转)

    操作系统:Ubuntu 15.10 x64 目标:安装 Android SDK 本文最后更新时间:2015-11-3 安装32位库文件 2013年9月的iPhone 5s是第一款64位手机,而Andr ...

  8. linux,windows,ubuntu下git安装与使用

    ubuntu下git安装与使用:首先应该检查本地是否已经安装了git ,如果没有安装的话,在命令模式下输入 sudo apt-get install git 进行安装 输入git命令查看安装状态及常用 ...

  9. Ubuntu Git安装与使用

    本系列文章由 @yhl_leo 出品.转载请注明出处. 文章链接: http://blog.csdn.net/yhl_leo/article/details/50760140 本文整理和归纳了关于Ub ...

随机推荐

  1. HBA 卡和RAID 卡

    HBA卡: 只从HBA的英文解释HOST BUS ADAPTER(主机总线适配器)就能看出来,他肯定是给主机用的,一般HBA就是给主机插上后,给主机扩展出更多的接口,来连接外部的设备.大多数讲到HBA ...

  2. list comprehension & generator expression

    List comprehensions(列表推导式) are better when you want to iterate over something multiple times. Howeve ...

  3. python中self cls init的理解

    原创文章,未经允许禁止转载! python中self cls init的理解 python中self cls init的理解

  4. DP专题·二

    1.hdu 1260 Tickets 题意:有k个人,售票员可以选择一个人卖,或者同时卖给相邻的两个人.问最少的售票时间. 思路:dp[i] = min(dp[i - 1] + singlep[i], ...

  5. ASYNCAPI

    https://www.asyncapi.com Introduction AsyncAPI provides a specification that allows you to define Me ...

  6. windows下的DeepLearning环境搭建:Theano的安装

    我的系统版本:windows8.1 64位 安装theano需要安装python.numpy等很多东西,为了简便,我这里用的是Anaconda 首先,清理电脑上的所有有关python的组件(可不清理, ...

  7. $命令行参数解析模块argparse的用法

    argparse是python内置的命令行参数解析模块,可以用来为程序配置功能丰富的命令行参数,方便使用,本文总结一下其基本用法. 测试脚本 把以下脚本存在argtest.py文件中: # codin ...

  8. JS与Jquery 中的extend用法不同

    1, Jquery //jQuery 应用扩展   jQuery.extend({                  // 定义setApDiv     setApDiv:function () {  ...

  9. MySQL-5.7设置InnoDB表数据文件存储位置

    1.表空间 Innodb存储引擎可将所有数据存放于ibdata*的共享表空间,也可将每张表存放于独立的.ibd文件的独立表空间. 共享表空间以及独立表空间都是针对数据的存储方式而言的. 共享表空间: ...

  10. systemverilog interface杂记

    随着IC设计复杂度的提高,模块间互联变得复杂,SV引入接口,代表一捆连线的结构. Systemverilog语法标准,新引入一个重要的数据类型:interface. interface主要作用有两个: ...