gitlab 安装报错:Could not find modernizr-2.6.2 in any of the sources
2014-04-30 15:27
781 查看
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
在安装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[/code]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
安装成功!
相关文章推荐
- gitlab 安装报错:Could not find modernizr-2.6.2 in any of the sources
- gitlab 安装报错:Could not find modernizr-2.6.2 in any of the sources
- bundle install时候出现"Could not find modernizr-2.6.2 in any of the sources"
- 解决“could not find gem 'turn <>=0 ' in any of the gem sources listed in your gemfile”错误
- Could not find gem 'sqlite3 (>= 0)' in any of the gem sources listed in you r Gemfile
- Could not find gem 'sass-rails (~> 5.0) x64-mingw32' in any of the gem sources listed in your Gemfil
- msfconsole run error – Could not find rake-10.4.2 in any of the sources
- 安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决
- 安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决
- 安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决
- 安装j2ee 报错 Could not find the required version of the Java(TM)2 Runtime Environment in '(null)'
- 安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决
- Could not find output/file.out in any of the configured local directories
- 安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决
- Could not find a price list in Ordered UOM xxx and Primary UOM of the item
- 重新安装xcode cocoapods出现 Could not find a valid gem 'cocoapods' (>= 0) in any repository
- 安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决办法。
- 安装J2EE的SDK报错:could not find the required version of the Java(TM)2 Runtime Environment in '(null)'的解决办法。
- Could not find the required version of the Java(TM)2 Runtime Environment in '(null)' 解决办法
- Could not find a valid gem 'compass' (>= 0) in any repository compass安装失败解决方案