centos6 升级Git版本
2024-10-20 20:31:04
操作步骤如下:
yum remove -y git #卸载旧版本Git
yum install -y tk zlib-devel openssl-devel perl cpio expat-devel gettext-devel asciidoc xmlto autoconf #安装依赖,否则一路报错....
wget https://www.kernel.org/pub/software/scm/git/git-2.1.2.tar.gz
tar xf v2.2.1.tar.gz
cd git-2.2.
make configure
./configure --prefix=/usr/local/git --with-iconv=/usr/local/libiconv #添加 iconv 支持
make all doc #编译并生成帮助文档
make install install-doc install-html #安装程序
echo "export PATH=$PATH:/usr/local/git/bin" >> ~/.bash_profile
echo "export GIT_SSL_NO_VERIFY=1" > ~/.bash_profile (如果不加入这句会出现fatal Peer certificate cannot be authenticated with known CA certificate)
source ~/.bash_profile
git --version Git 项目地址:https://github.com/git/git
最新文章
- Java开发中的23种设计模式详解
- electron 入门小白贴
- 怎么给我的Office文档加密
- curl常用选项详解
- 在struts里使用Kindeditor注意事项
- mysql其他函数
- SuperSocket学习笔记(一)
- Hibernate框架(一)——总体介绍
- 符号文件(.pdb)——Windows 应用程序调试必备
- java抽象类的特点
- JQuery中参数e,event
- ZooKeeper笔记——技术点汇总
- LIMS系统仪器数据采集-使用xpdf解析pdf内容
- redux 简介
- unity读取txt,并且生成vector3的数组
- Android客户端与数据库交互数据的简单学习
- ActivityCapture
- poj 3041(最大匹配问题)
- NodeJS express不是外部或内部命令的解决办法
- day7:vcp考试
热门文章
- this泛指函数的上下文
- 123: The filename, directory name, or volume label syntax is incorrect今天玩nginx的时候报错
- SpringMVC详解------参数绑定
- DB2 catalog 编目
- vue浏览器全屏实现
- 【转载】更简单的学习Android事件分发
- MongoDB 副本集丢失数据的测试
- Python—时间模块(time)和随机模块(random)
- LCD RGB 控制技术 时钟篇(下)【转】
- [视频教程] ubuntu系统下安装最新版PHP7.3.X环境