近期嘗試過搭建一個(gè)gitlab,搭建參考的是這篇文章仔引,搭建過程中也著實(shí)遇到好多坑,這篇文章中沒有做過多說明褐奥。以下是遇坑的記錄咖耘。
- 關(guān)于ruby的坑,安裝ruby之前一定要先安裝好yaml撬码,否則執(zhí)行有關(guān)gem的命令時(shí)儿倒,會一直報(bào)如下錯(cuò)誤
解決這個(gè)問題的辦法參考此文章,意思就是在安裝ruby之前要先安裝好libyaml呜笑,此文章的作者說只要It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby.
make clean
就可以解決夫否,我實(shí)驗(yàn)過后發(fā)現(xiàn)不行,不知道是不是我理錯(cuò)了作者的意思叫胁。 - 關(guān)于gitolite的凰慈,在安裝gitolite之前,記得先安裝好perl-Time-HiRes驼鹅。
否則會報(bào)錯(cuò)如下
具體的解決方案是查看了此文章解決的微谓。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.
意思就是先yum install perl-Time-HiRes
之后再去安裝gitolite。