安装独角兽时出错

时间:2016-01-26 17:14:57

标签: ruby gitlab unicorn

我正在尝试在我的服务器上运行GitLab。 但该服务无法启动。 它推出:

==> /var/log/gitlab/sidekiq/current /var/log/gitlab/unicorn/current <==
2016-01-26_16:35:06.79546 failed to start a new unicorn master
2016-01-26_16:35:06.80558 starting new unicorn master
2016-01-26_16:35:07.10485 Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
2016-01-26_16:35:07.11661 bundler: command not found: unicorn
2016-01-26_16:35:07.12170 Install missing gem executables with `bundle install`

我的系统:

  • Ubuntu 14.04

  • Plesk 12.5

  • Ruby 1.9.3

  • 宝石1.8.23

  • Bundler 1.11.2

我试图运行

gem install unicorn

但是我收到错误:

Building native extensions.  This could take a while...
ERROR:  Error installing unicorn:
    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:1:in `<main>'


Gem files will remain installed in /var/lib/gems/1.9.1/gems/kgio-2.10.0 for inspection.
Results logged to /var/lib/gems/1.9.1/gems/kgio-2.10.0/ext/kgio/gem_make.out

我没有红宝石的经验。所以任何人都有一个建议我做错了什么?

提前致谢 多米尼克

1 个答案:

答案 0 :(得分:0)

您是否仅限于Ruby 1.9.3?目前最稳定的Ruby版本是2.3.0。更新Ruby可能会解决这个问题。

https://www.ruby-lang.org/en/downloads/

或者,在更新Ruby之前,请查看此主题。以下是Ruby 1.9.1中出现的类似错误。 `require': no such file to load -- mkmf (LoadError)

看起来该线程上的人使用build-essential成功了:

sudo apt-get install build-essential
相关问题