无法使用rbenv构建和运行Gollum gem

时间:2015-09-01 15:20:24

标签: ruby rbenv gollum-wiki

我希望使用rbenv在Ubuntu 14.04服务器上运行Gollum的开发版本来管理ruby和gem版本。我使用以下命令来构建和安装gollum。如果我首先使用rbenv shell system来绕过rbenv,那么我就能够构建并正确运行。

rbenv install 1.9.3-p551
rbenv rehash
git clone git@github.com:gollum/gollum.git
cd gollum
rbenv local 1.9.3-p551
gem install bundle
rbenv rehash
bundle install
rake build
gem install --no-ri --no-rdoc pkg/gollum-4.0.0.gem

然后运行gollum会导致以下错误:

[dkozel@server gollum] gollum
/home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/1.9.1/forwardable.rb:204: stack level too deep (SystemStackError)

我试过干净安装ruby版本和所有宝石,在vendor / bundle中安装gem,构建Gollum的不同发布标签,并使用Ruby 2.2.2而不是1.9.3p551。

使用额外的调试标志从~/gollum/bin运行gem会产生完整的跟踪。

[dkozel@server bin] ruby -wdS gollum
Exception `LoadError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/1.9.1/rubygems.rb:1264 - cannot load such file -- rubygems/defaults/operating_system
Exception `LoadError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/1.9.1/rubygems.rb:1273 - cannot load such file -- rubygems/defaults/ruby
Exception `LoadError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/1.9.1/rubygems/custom_require.rb:36 - cannot load such file -- bundler/setup
Exception `Errno::EEXIST' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/1.9.1/fileutils.rb:247 - File exists - /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000203f7f8>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000203f140>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000203ec40>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000203e538>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000203de80>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for <Gem::Dependency type=:runtime name="rack" requirements=">= 1.0">:Gem::Dependency
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x00000002061b00>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x000000020613f8>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for <Gem::Dependency type=:runtime name="ansi" requirements=">= 0">:Gem::Dependency
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x00000002052c40>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x00000002052718>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x00000002052100>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for <Gem::Dependency type=:runtime name="json" requirements=">= 0">:Gem::Dependency
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for <Gem::Dependency type=:runtime name="tzinfo" requirements=">= 0">:Gem::Dependency
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x000000020516d8>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000204cae8>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000204c638>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000204c188>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000204bcd8>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000204b828>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000204b378>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for <Gem::Dependency type=:runtime name="rack" requirements="~> 1.4">:Gem::Dependency
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000205f558>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000205f058>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000205a738>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000205a288>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x00000002057790>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x00000002060390>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x00000002042ac0>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x00000002050300>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for <Gem::Dependency type=:runtime name="rack" requirements=">= 0">:Gem::Dependency
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000203cf08>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000203c850>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x0000000203c3a0>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x00000002046918>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x00000002046468>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x000000020442a8>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x00000002043df8>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x00000002043948>
Exception `NoMethodError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/dep_proxy.rb:39 - undefined method `to_ary' for #<Gem::Dependency:0x00000002043498>
Exception `SystemStackError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/gems/1.9.1/gems/bundler-1.10.6/lib/bundler/spec_set.rb:111 - stack level too deep
Exception `SystemStackError' at /home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/1.9.1/forwardable.rb:204 - stack level too deep
/home/dkozel/.rbenv/versions/1.9.3-p551/lib/ruby/1.9.1/forwardable.rb:204: stack level too deep (SystemStackError)

0 个答案:

没有答案