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
:
- in
Gemfile
, line 164, change"modernizr", "2.6.2"
to"modernizr-rails", "2.7.1"
- in
Gemfile.lock
, line 292, changemodernizr (2.6.2)
tomodernizr-rails (2.7.1)
- in
Gemfile.lock
, line 626, changemodernizr (= 2.6.2)
tomodernizr-rails (= 2.7.1)
This second solution is thanks to csj4032 on Github.