gitlab一款开源的代码版本控制软件,仿github。安装过程当中遇到一个问题,纠结了一上午,最终终于搞定了,分享一下:html
在安装deployment时:git
sudo -u git -H bundle install --deployment --without development test postgresgithub
报错:vim
Could not find modernizr-2.6.2 in any of the sourcesruby
找不到modernizr-2.6.2的库,更改了几个source源以后,问题也没有解决。因而经过wget下载modernizr,再进行安装:gitlab
cd /home/git/gitlabpost
wget http://rubygems.org/downloads/modernizr-2.6.2.gem
gem install modernizrspa
而后将Gemfile和Gemfile.lock配置文件的modernizr版本更改为2.7.1:版本控制
vim Gemfilecode
gem "modernizr" "2.6.2" ===> gem "modernizr-rails", "2.7.1"
vim Gemfile.lock
modernizr (2.6.2) ===> modernizr-rails (2.7.1)
modernizr (2.6.2) ===> modernizr-rails (= 2.7.1)
再次执行:
sudo -u git -H bundle install --deployment --without development test postgres
安装成功!