title: Installing git & gitlab on debian wheezy
body: <p>I'm using debian wheezy and would like to install git &amp; gitlab on my server</p>
  
  <p>I follow this tutoriel <a href="https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md" rel="nofollow">https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md</a> up to the step "install gems" where when I do </p>
  
  <pre><code>sudo -u git -H bundle install --deployment --without development test postgres aws
  </code></pre>
  
  <p>I get this</p>
  
  <pre><code>Fetching source index from https://rubygems.org/
  Using rake (10.1.0)
  Using i18n (0.6.9)
  Using minitest (4.7.5)
  Using multi_json (1.8.4)
  
  Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
  
          /usr/bin/ruby1.9.1 extconf.rb
  /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError)
          from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
          from extconf.rb:13:in `&lt;main&gt;'
  
  
  Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/atomic-1.1.14 for inspection.
  Results logged to /home/git/gitlab/vendor/bundle/ruby/1.9.1/gems/atomic-1.1.14/ext/gem_make.out
  An error occurred while installing atomic (1.1.14), and Bundler cannot continue.
  Make sure that `gem install atomic -v '1.1.14'` succeeds before bundling.
  </code></pre>
  
  <p>Of course, I tried</p>
  
  <p>gem install atomic -v '1.1.14'</p>
  
  <p>I tried it in like that, with the user git, and in root</p>
  
  <p>Normal user return failed (no autorisation), but git and root work, and even after that, I get the exact same error message</p>
  
  <p>Anyone ever managed to install it?</p>
  
  <p>Or have some experience with ruby and know what could be wrong</p>
  
  <p>Thank you.</p>