Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing gitLab missing modernizer?

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.

like image 918
Cracker0dks Avatar asked Apr 03 '14 00:04

Cracker0dks


3 Answers

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, change modernizr (2.6.2) to modernizr-rails (2.7.1)
  • in Gemfile.lock, line 626, change modernizr (= 2.6.2) to modernizr-rails (= 2.7.1)

This second solution is thanks to csj4032 on Github.

like image 153
L0j1k Avatar answered Nov 04 '22 16:11

L0j1k


In case anyone arrives at this page like me, use the latest version of the doc at https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/install/installation.md -- as this is fixed in 6.7. For some reason I was following steps with 6.6.

like image 30
Arie Avatar answered Nov 04 '22 14:11

Arie


this makes success on Centos 6.4, Ruby 2.2.1, git 1.9.3, gitlab 6-6-stable.

"In Gemfile, line 164, change "modernizr", "2.6.2" to "modernizr-rails", "2.7.1". In Gemfile.lock, line 292, change modernizr (2.6.2) to modernizr-rails (2.7.1) and on line 626, change modernizr (= 2.6.2) to modernizr-rails (= 2.7.1)."

thanks to L0j1k, and csj4032 on Github.

like image 1
lennoxhead Avatar answered Nov 04 '22 16:11

lennoxhead