首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在MacOS10.12上安装Gitlab在“Charlock_holmes(0.7.3)”处失败

在MacOS10.12上安装Gitlab在“Charlock_holmes(0.7.3)”处失败
EN

Stack Overflow用户
提问于 2018-01-24 09:23:08
回答 1查看 853关注 0票数 1

我想在Mac上安装Gitlab,所以我遵循了

OS上Gitlab的安装指南

然而,当我通过包安装红宝石时,我陷入了麻烦。

代码语言:javascript
复制
bundle install --deployment --without development test mysql aws kerberos

结果,

代码语言:javascript
复制
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

为了安装charlock_holmes.,我尝试了无法在MacOS塞拉利昂上安装0.7.3版本

代码语言:javascript
复制
gem install charlock_holmes -v 0.7.3 -- --with-cxxflags=-std=c++11

结果成功安装。

代码语言:javascript
复制
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

所以我不明白为什么我不能一直安装宝石。

我安装所有的宝石

包安装-无部署-无需开发测试mysql aws kerberos

不过,我犯了别的错误.

bundle exec rake gitlab:安装RAILS_ENV=production

结果,

代码语言:javascript
复制
D, [2018-01-25T16:22:14.066436 #89351] DEBUG -- sentry: ** [Raven] compared with non class/module excluded from capture due to environment or should_capture callback
rake aborted!
TypeError: compared with non class/module
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-06-22 16:40:01

我今天遇到了这个问题。为我修复它的是更新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!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48418835

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档