分享

gitlab 安装报错:Could not find modernizr

 善哉善斋 2014-12-24

     gitlab一款开源的代码版本控制软件,仿github。安装过程中遇到一个问题,纠结了一上午,最终终于搞定了,分享一下:


在安装deployment时:

   sudo -u git -H bundle install --deployment --without development test postgres


报错:

   Could not find modernizr-2.6.2 in any of the sources


找不到modernizr-2.6.2的库,更改了几个source源之后,问题也没有解决。于是通过wget下载modernizr,再进行安装:

     

cd /home/git/gitlab

wget http://rubygems.org/downloads/modernizr-2.6.2.gem

gem install modernizr


然后将Gemfile和Gemfile.lock配置文件的modernizr版本更改成2.7.1:


vim Gemfile


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


安装成功!

本文出自 “David” 博客,请务必保留此出处http://davidbj.blog.51cto.com/4159484/1405062

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多