centos 6.5 Git搭建
2016-03-03 18:30
381 查看
1. 环境部署
系统环境:服务器端:CentOS 6.5 ,ip:192.168.56.1
客户端:CentOS 6.5 ,ip:192.168.56.101
软件版本:服务器端:源码编译安装,git-1.9.0.tar.gz
客户端:yum在线安装机制
2. 安装
2.1 服务器端:
———————————————————
如果编译时提示错误:
解决办法:
然后回到git继续编译:
查看版本号:git --version
git version 1.7.1
参考:
http://www.cnblogs.com/mjorcen/p/4414163.html http://www.centoscn.com/CentosServer/ftp/2014/0414/2789.html
系统环境:服务器端:CentOS 6.5 ,ip:192.168.56.1
客户端:CentOS 6.5 ,ip:192.168.56.101
软件版本:服务器端:源码编译安装,git-1.9.0.tar.gz
客户端:yum在线安装机制
2. 安装
2.1 服务器端:
#yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel #wget http://git-core.googlecode.com/files/git-1.9.0.tar.gz #tar zxvf git-1.9.0.tar.gz #cd git-1.9.0 #make prefix=/usr/local/git all #make prefix=/usr/local/git install #root用户运行
———————————————————
如果编译时提示错误:
LINK git-credential-store libgit.a(utf8.o): In function `reencode_string_iconv’: /opt/git-master/utf8.c:530: undefined reference to `libiconv’ libgit.a(utf8.o): In function `reencode_string_len’: /opt/git-master/utf8.c:569: undefined reference to `libiconv_open’ /opt/git-master/utf8.c:588: undefined reference to `libiconv_close’ /opt/git-master/utf8.c:582: undefined reference to `libiconv_open’ collect2: ld 返回 1 make: *** [git-credential-store] 错误 1
解决办法:
cd /usr/local/src/ 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
然后回到git继续编译:
cd /usr/local/src/git-1.9.0 make configure ./configure --prefix=/usr/local/git --with-iconv=/usr/local/libiconv make make install
查看版本号:git --version
git version 1.7.1
参考:
http://www.cnblogs.com/mjorcen/p/4414163.html http://www.centoscn.com/CentosServer/ftp/2014/0414/2789.html
相关文章推荐
- CentOS 的使用
- 如何在Linux14.04英文版下安装中文输入法
- C/C++获取Linux系统CPU和内存及硬盘使用情况
- vmware的centos7下搭建lnmp环境(新手)
- linux 上 crontab 使用教程
- java执行linux命令
- Linux 学习笔记——常见命令
- CentOS防火墙配置(转)
- linux系统的运行级别
- linux - 输入输出重定向 及 管道
- secure crt连接不上linux服务端
- Linux学习笔记:CentOS6关闭IPv6
- Linux中随手可得的测试、调试、性能检验工具
- linux 下的进程管理工具 supervisor
- centos 改变语言环境
- linux下Drools6.3.0规则引擎的安装配置
- linux环境下python的pdb调试方法
- Linux下vsftpd基本配置和虚拟用户设置的安全方法
- centos 7.x编写开机启动服务
- 一个Linux下的adb 安卓截屏脚本