我正在使用debian wheezy并想安装git&我服务器上的gitlab
我按照这个tutoriel https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md一直到“安装宝石”这一步我在哪里
sudo -u git -H bundle install --deployment --without development test postgres aws
我明白了
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 `<main>'
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.
当然,我试过
gem install atomic -v'1.1.14'
我尝试使用用户git和root
普通用户返回失败(没有自动化),但是git和root工作,甚至在那之后,我得到完全相同的错误消息
有人设法安装它吗?
或者对ruby有一些经验并知道可能出现的问题
谢谢。
答案 0 :(得分:3)
apt-get install ruby-dev
应该修复它:)。我刚刚完成了。