3 搭建私有git服务器(安装linux版本的)
1、安装git服务环境准备
yum -y install curl curl-devel zlib-devel openssl-devel perl cpio expat-devel gettext-devel gcc cc
当看到上面表示完成。
2、下载git-2.5.0.tar.gz
下载地址:https://git-scm.com/download
我这边有下载好的。 链接:https://pan.baidu.com/s/1khPY_7haO3t–3xOvczo6Q
提取码:peyj
1)解压缩
2)cd git-2.5.0
3)autoconf
4)./configure
5)make
我在make编译时出现以下编译报错:
/usr/bin/perl Makefile.PL PREFIX=’/usr/local’ INSTALL_BASE=’’ --localedir=’/usr/local/share/locale’
Can’t locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 .) at Makefile.PL line 3.
BEGIN failed–compilation aborted at Makefile.PL line 3.
make[1]: *** [perl.mak] Error 2
make: *** [perl/perl.mak] Error 2
解决方案详见我的博客
Can’t locate ExtUtils/MakeMaker.pm in @INC(centos安装git服务报错)
6)make install
make[1]: Leaving directory `/root/git-2.5.0/git-gui'
bindir=$(cd '/usr/local/bin' && pwd) && \
execdir=$(cd '/usr/local/libexec/git-core' && pwd) && \
{
test "$bindir/" = "$execdir/" || \
for p in git git-shell git-upload-pack git-cvsserver; do \