首页 > Gitolite怎么安装,现在在网上能找到安装文章都不能用。

Gitolite怎么安装,现在在网上能找到安装文章都不能用。

1,按照 http://gitolite.com/安装指引,跑“gitolite/install -ln”出错(git-scm说跑“./gl-easy-install git sercer admin”,没有与时俱进的教程就是在浪费时间):
Can't locate Time/HiRes.pm in @INC (@INC contains: /home/git/gitolite/src/lib /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 /home/git/gitolite/src/lib/Gitolite/Common.pm line 76.
BEGIN failed--compilation aborted at /home/git/gitolite/src/lib/Gitolite/Common.pm line 76.
Compilation failed in require at gitolite/install line 15.
BEGIN failed--compilation aborted at gitolite/install line 15.
Solution : =====>运维帮忙装了perl-Time-HiRes,错误就跳过了

2,运行install -ln出错误。
[git@server ~]$ gitolite/install -ln
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").

How to fix it?!


在fedora上遇到了同样的问题,安装了perl-devel后问题解决。


问题2:

编辑 /etc/profile 或 /root/.bashrc
LC_ALL="en_US.UTF-8" 
export LC_ALL

你试试这个吧
服务器上的 Git - Gitolite

不行就加些QQ群问问:

153393029 GITHUB协会
23541011 GIT中文

【热门文章】
【热门文章】