【问题标题】:Installing git & gitlab on debian wheezy在 debian wheezy 上安装 git 和 gitlab
【发布时间】:2014-02-14 14:26:19
【问题描述】:

我正在使用 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 工作,即使在那之后,我得到完全相同的错误消息

有人安装过吗?

或者对 ruby​​ 有一些经验并知道可能出现的问题

谢谢。

【问题讨论】:

    标签: git debian gitlab


    【解决方案1】:
    apt-get install ruby-dev
    

    应该修复它:)。我刚刚做了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-07-06
      • 2013-11-30
      • 1970-01-01
      • 1970-01-01
      • 2014-09-28
      • 2018-03-22
      • 2015-12-09
      相关资源
      最近更新 更多