- 浏览: 146504 次
- 性别:
- 来自: 深圳
文章分类
最新评论
-
lyaqys:
lz实现的OptimisticExclusiveLock有点问 ...
java park/unpark 【java并发】基于JUC CAS原理,自己实现简单独占锁
在CentOS上安装Git
作者: 云飛 日期: 2012/07/05 发表评论 (0)查看评论
CentOS 5的yum源中没有git,只能自己编译安装,现记录下编译安装的内容及错误解决方法,留给自己备忘。
编译基础环境环境
1
yum -y install gcc make
确保已安装了依赖的包
1
yum install -y curl curl-devel zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel
下载最新的git包
1
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
2
tar xzvf git-latest.tar.gz
3
cd git-2012-07-05 #你的目录可能不是这个
4
autoconf
5
./configure
6
make && make install
检查下安装的版本,大功告成
1
[root@cobbler git-2012-07-05]# git --version
2
git version 1.7.11.GIT
编译时遇到错误讯息及解决方法:
make[1]: Warning: File `Makefile' has modification time 3e+06 s in the future
/usr/bin/perl Makefile.PL PREFIX='/usr/local' INSTALL_BASE='' --localedir='/usr/local/share/locale'
Writing perl.mak for Git
make[1]: warning: Clock skew detected. Your build may be incomplete.
GEN git-add--interactive
make[1]: Warning: File `Makefile' has modification time 3e+06 s in the future
Writing perl.mak for Git
make[2]: Warning: File `Makefile.PL' has modification time 3e+06 s in the future
Use of uninitialized value $localedir in concatenation (.) or string at Makefile.PL line 52.
Writing perl.mak for Git
make[2]: *** [perl.mak] Error 1
make[1]: *** [instlibdir] Error 2
make: *** [git-add--interactive] Error 2
在网上搜索了一些,根据出错的warning发现是机器时间设置的问题。。是机器系统的时间比版本的时间早。所以要系统时间重新设置。
由于CentOS6中yum源中已经有git的版本了,可以直接使用yum源进行安装
1
yum -y install git
2
3
目前yum源中的git版本如下
4
[root@cobbler ~]# git --version
5
git version 1.7.1
作者: 云飛 日期: 2012/07/05 发表评论 (0)查看评论
CentOS 5的yum源中没有git,只能自己编译安装,现记录下编译安装的内容及错误解决方法,留给自己备忘。
编译基础环境环境
1
yum -y install gcc make
确保已安装了依赖的包
1
yum install -y curl curl-devel zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel
下载最新的git包
1
wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
2
tar xzvf git-latest.tar.gz
3
cd git-2012-07-05 #你的目录可能不是这个
4
autoconf
5
./configure
6
make && make install
检查下安装的版本,大功告成
1
[root@cobbler git-2012-07-05]# git --version
2
git version 1.7.11.GIT
编译时遇到错误讯息及解决方法:
make[1]: Warning: File `Makefile' has modification time 3e+06 s in the future
/usr/bin/perl Makefile.PL PREFIX='/usr/local' INSTALL_BASE='' --localedir='/usr/local/share/locale'
Writing perl.mak for Git
make[1]: warning: Clock skew detected. Your build may be incomplete.
GEN git-add--interactive
make[1]: Warning: File `Makefile' has modification time 3e+06 s in the future
Writing perl.mak for Git
make[2]: Warning: File `Makefile.PL' has modification time 3e+06 s in the future
Use of uninitialized value $localedir in concatenation (.) or string at Makefile.PL line 52.
Writing perl.mak for Git
make[2]: *** [perl.mak] Error 1
make[1]: *** [instlibdir] Error 2
make: *** [git-add--interactive] Error 2
在网上搜索了一些,根据出错的warning发现是机器时间设置的问题。。是机器系统的时间比版本的时间早。所以要系统时间重新设置。
由于CentOS6中yum源中已经有git的版本了,可以直接使用yum源进行安装
1
yum -y install git
2
3
目前yum源中的git版本如下
4
[root@cobbler ~]# git --version
5
git version 1.7.1
发表评论
-
简单的linux -c http-client
2013-10-23 15:35 4669#include<stdio.h> #includ ... -
linux进程cpu资源分配命令nice,renice,taskset
2013-09-04 14:03 1129nice,renice 指定进程运行的优先级 taskset ... -
c 专家编程
2013-08-13 17:06 653总结: -2> int * a = NUL ... -
Linux中线程与CPU核的绑定
2013-08-09 15:15 2085最近在对项目进行性能 ... -
建议编译的时候加警告 atof
2013-08-07 20:46 669#include <stdlib.h> ... -
feodra 17 安装 chrome
2013-08-04 01:35 7241: 下载:http://www.google.cn/chro ... -
Sudo提权出现:xx用户不在 sudoers 文件中
2013-08-03 20:22 872Sudo提权出现:xx用户不在 sudoers 文件中 症状 ... -
select,epoll,poll比较
2013-07-28 17:13 650select,poll,epoll简介 se ... -
gcc编译程序时,可能会用到“-I”(大写i),“-L”(大写l),“-l”(小写l)等参数
2013-07-22 22:45 851我们用gcc编译程序时,可能会用到“-I”(大写i),“-L” ... -
Linux下如何将进程绑定在特定的CPU上运行
2013-07-22 10:52 950Linux下如何将进程绑定在特定的CPU上运行? 以root用 ... -
linux运维常用命令
2013-07-13 20:40 808推荐一个实用命令:awk '{x+=$2} END {prin ... -
linux 进程通信方式
2013-07-07 20:46 589# 管道( pipe ):管道是一种半双工的通信方式,数据只能 ... -
判断两个一个链表是否存在循环(C专家编程中的问题)
2013-06-24 15:35 874判断两个一个链表是否存在循环(C专家编程中的问题) #incl ... -
atoi源码
2013-05-14 19:32 1223原文: http://blog.csdn.net/eroswa ... -
为重负网络优化 Nginx 和 Node.js
2013-05-13 01:12 954原文:http://linux.cn/forum.php?mo ... -
c语言特殊字符串复制
2013-05-06 01:59 8262.strcpy和memcpy主要有以下3方面的区别。 2.1 ... -
《APUE》:线程和fork(父子进程锁)
2013-04-29 21:07 1109《Unix环境高级编程》这本书附带了许多短小精美的小程序,我在 ... -
CentOS升级Python到2.7版本
2013-04-23 15:24 903[root@localhost ~] python -V ... -
Linux多线程同步的几种方式
2013-04-22 22:49 737Linux多线程同步的几种方式 线程的最大特点是资 ... -
防止pause和alrm产生竞争
2013-04-08 22:51 7661 #include<stdio.h> 2 ...
相关推荐
GIT 安装配置手册。教您在CENTOS下玩转GIT。
mac git安装文件包
Git安装教程,内含安装包,直接安装使用
git安装的基本操作教程
Git安装配置指南,一步步指导你怎么安装git,以及如何配置
最新的git安装版本
git安装文件及使用说明.rar
git 安装
git安装
git 安装程序包 git 安装程序包
Windows下的Git安装配置过程和key生成方式
windows 下是怎么进行 下载,安装,配置git 的,提供全面的文档
Git是一款免费、开源的分布式版本控制系统,用于敏捷高效地处理任何或小或大的项目。[1] Git的读音为/gɪt/。 Git是一个开源的分布式版本控制系统,可以有效、高速的处理从很小到非常大的项目版本管理。[2] Git 是 ...
git安装和小乌龟安装包
GIT的安装和使用教程,比较详细,实际操作完全可用。。。
git安装git安装git安装git安装git安装git安装git安装git安装
git安装教程
git的安装和配置,包括本地配置用户名邮箱,配置本地ssh,配置远程服务器,关联远程和本地项目
git安装软件【windows64位、有中文语言安装包】
git安装及其使用