在Mac OS 10.12上安装Gitlab失败了'Charlock_holmes(0.7.3)'

时间:2018-01-24 09:23:09

标签: ruby-on-rails ruby macos gitlab

我想在Mac OS X上安装Gitlab。因此我跟着

Installation Guid for Gitlab on OS X

然而,当我通过捆绑安装ruby gem时,我遇到了麻烦。

<select id="selectbox1">
    <option value="">Select an option&hellip;</option>
    <option value="aye">Aye</option>
    <option value="eh">Eh</option>
    <option value="ooh">Ooh</option>
    <option value="whoop">Whoop</option>
</select>

导致,

bundle install --deployment --without development test mysql aws kerberos

我尝试Unable to install version 0.7.3 on Mac OS Sierra以安装 charlock_holmes

Gem files will remain installed in /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/charlock_holmes-0.7.3 for inspection.
Results logged to /Users/git/gitlab/vendor/bundle/ruby/2.3.0/extensions/x86_64-darwin-16/2.3.0-static/charlock_holmes-0.7.3/gem_make.out

An error occurred while installing charlock_holmes (0.7.3), and Bundler cannot continue.
Make sure that `gem install charlock_holmes -v '0.7.3'` succeeds before bundling.

In Gemfile:
  gitlab_git was resolved to 10.5.0, which depends on
    github-linguist was resolved to 4.7.6, which depends on
      charlock_holmes

导致成功安装。

gem install charlock_holmes -v 0.7.3 -- --with-cxxflags=-std=c++11

所以我很困惑为什么我不能保持安装宝石..

我按

安装所有宝石
  

bundle install --no-deployment - without development test mysql aws kerberos

然而,我遇到了其他错误...

  

捆绑exec rake gitlab:setup RAILS_ENV = production

导致,

Building native extensions with: '--with-cxxflags=-std=c++11'
This could take a while...
Successfully installed charlock_holmes-0.7.3
Parsing documentation for charlock_holmes-0.7.3
Done installing documentation for charlock_holmes after 0 seconds
1 gem installed

1 个答案:

答案 0 :(得分:0)

我今天有这个问题。对我来说固定的是更新icu4c,然后重新安装ruby,它将与更新的版本一起编译。我使用ruby-installchruby,所以基本上是这样的:

$ brew upgrade icu4c $ chruby 2.3.4 # change to previous ruby (if necessary) $ rm -rf .rubies/ruby-2.4.4 # drop ruby compiled with old version of icu4c $ ruby-install ruby 2.4.4 # don't forget to restart your terminal after this completes $ ruby -e 'puts RUBY_VERSION' 2.4.4 $ bundle install # now it works!