我想在Mac上安装Gitlab,所以我遵循了
然而,当我通过包安装红宝石时,我陷入了麻烦。
bundle install --deployment --without development test mysql aws kerberos结果,
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版本
gem install charlock_holmes -v 0.7.3 -- --with-cxxflags=-std=c++11结果成功安装。
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
结果,
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发布于 2018-06-22 16:40:01
我今天遇到了这个问题。为我修复它的是更新icu4c,然后重新安装ruby,它将与更新的版本一起编译。我使用ruby-install和chruby,所以基本上是这样的:
$ 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!
https://stackoverflow.com/questions/48418835
复制相似问题