我正在使用debian wheezy,并想在我的服务器上安装git&gitlab
我遵循这个指导老师https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md直到执行“安装gems”的步骤
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工作,即使在此之后,我也得到完全相同的错误消息
有人设法安装它吗?
或者在红宝石方面有一些经验,知道什么地方可能是错的
谢谢。
apt-get install ruby-dev
应该解决它:)。我刚做完
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句