博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Centos Git1.7.1升级到Git2.2.1
阅读量:7055 次
发布时间:2019-06-28

本文共 907 字,大约阅读时间需要 3 分钟。

安装需求:

># yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel asciidoc># yum install  gcc perl-ExtUtils-MakeMaker      error: ```/utf8.c:463: undefined reference to `libiconv'```># wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz># tar zxvf libiconv-1.14.tar.gz ># cd libiconv-1.14># ./configure --prefix=/usr/local/libiconv># make && make install

卸载Centos自带的git1.7.1:

通过 –version查看系统带的版本,Cento6.5应该自带的是git版本是1.7.1

># yum remove git

下载git2.2.1并将git添加到环境变量中

># wget https://github.com/git/git/archive/v2.2.1.tar.gz># tar zxvf v2.2.1.tar.gz># cd git-2.2.1># make configure># ./configure --prefix=/usr/local/git --with-iconv=/usr/local/libiconv># make all doc># make install install-doc install-html># echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc># source /etc/bashrc

查看版本号

># git --version>git version 2.2.1

转载于:https://www.cnblogs.com/liqing1009/p/6761380.html

你可能感兴趣的文章
macOS mkdir: /usr/var: Operation not permitted
查看>>
LuaScriptCore v2.4.0 发布,移动端 Lua 桥接框架
查看>>
关于AppCompatAutoCompleteTextView使用总结
查看>>
上网搜了很多JQuery树型表格插件都不满意,决定自己写
查看>>
最新Django2.0.1在线教育零基础到上线教程(七)-7-完结
查看>>
彻底解决mysql中文乱码
查看>>
简单优化前端工程几种方式(上篇)
查看>>
Spring Cloud Spring Boot mybatis分布式微服务云架构(十二)返回JSON格式
查看>>
Python全栈 MongoDB 数据库(Mongo、 正则基础、一篇通)
查看>>
react native 开发常用优质第三方组件
查看>>
C# 操作Word文本框——插入表格/读取表格/删除表格
查看>>
Mybatis-Generator_学习_02_使用Mapper专用的MyBatis Generator插件
查看>>
云栖大会首设“科技脱贫”专场 ,20张会场门票等你来拿!
查看>>
Redis字符串类型内部编码剖析
查看>>
TensorFlow实战(一)-人工智能基础知识
查看>>
ubuntu16下安装metasploit的笔记
查看>>
JavaScript MVC 学习笔记(三)类的使用(中)
查看>>
Hibernate-ORM:04.Hibernate中的get()和load()
查看>>
邮件推送的邮件模板如何编辑退订代码?
查看>>
交换机芯片探秘
查看>>