2

我在这里慢慢地失望。我按照 GitHub 上的官方指南设置 GitLab。

直到“捆绑安装”一切都好。但如果我在这里尝试这个:

$ sudo -u git -H bundle install --deployment --without development test postgres aws

它挂在“从https://rubygems.org/获取源索引”

更改 gemfile 中的某些内容会产生更多麻烦...

如果已经安装了 rake,它会触发以下错误消息:

$ sudo -u git -H bundle exec rake gitlab:setup RAILS_ENV=production
Could not find rake-10.1.0 in any of the sources
Run `bundle install` to install missing gems.

在这里做什么?为什么它比需要的更复杂?如果有人可以帮助我会很高兴。

谢谢。

4

1 回答 1

6

刚刚解决了我的问题(在失去神经 14 小时后......)

官方指南中的“安装宝石”都可以。

然后我在这里试过这个:

$ sudo bundle install --path vendor/bundle

比我从http://bb-m.rubygems.org/gems/rake-10.1.0.gem(使用 wget)下载“rake”到“/home/git/gitlab/vendor/bundle/ruby/2.0 .0/缓存”目录

赋予它所有权利(chmod 777 rake ....)

然后尝试了这个:

$ sudo -u git -H bundle install --verbose --deployment --without development test postgres aws

并且->

Your bundle is complete!
Gems in the groups development, test, postgres and aws were not installed.
It was installed into ./vendor/bundle
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:

<= 1.8.6 : unsupported
 = 1.8.7 : gem install rdoc-data; rdoc-data --install
 = 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Post-install message from haml:

HEADS UP! Haml 4.0 has many improvements, but also has changes that may break
your application:

* Support for Ruby 1.8.6 dropped
* Support for Rails 2 dropped
* Sass filter now always outputs <style> tags
* Data attributes are now hyphenated, not underscored
* html2haml utility moved to the html2haml gem
* Textile and Maruku filters moved to the haml-contrib gem

For more info see:

http://rubydoc.info/github/haml/haml/file/CHANGELOG.md

Post-install message from httparty:
When you HTTParty, you must party hard!
于 2013-10-03T23:53:52.963 回答