I try to install gitlab on debian with this turotial: https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md
I'm at step "Install Gems" and try to run:
sudo -u git -H bundle install --deployment --without development test postgres aws
i get this echo:
Fetching source index from https://rubygems.org/
Could not find modernizr-2.6.2 in any of the sources
I don't find a solution for this error I run it as root as well.
Thanks for help.
I ran into this same problem a few minutes ago. Looks like the classy folks behind Modernizr's Rubygem yanked the most recent versions. You can download the latest gem (Modernizr-2.5.2 as required in the docs there) running the following command inside your /home/git/gitlab
directory:
wget http://rubygems.org/downloads/modernizr-2.6.2.gem
Then, go ahead and run gem install modernizr
(without changing directories) and the utility will search in the local directory for the gem file before trying to fetch it remotely. This is the gem we're looking for.
NOTE: It looks like some people are still having problems with this solution, so something else we can do is replace a few lines in Gemfile
and Gemfile.lock
(both on /home/git/gitlab
), switching modernizr
for modernizr-rails
:
Gemfile
, line 164, change "modernizr", "2.6.2"
to "modernizr-rails", "2.7.1"
Gemfile.lock
, line 292, change modernizr (2.6.2)
to modernizr-rails (2.7.1)
Gemfile.lock
, line 626, change modernizr (= 2.6.2)
to modernizr-rails (= 2.7.1)
This second solution is thanks to csj4032 on Github.