黄瓜安装问题,故障排除需要帮助。
我很确定这个问题与黄瓜没有直接关系。但是,它阻止我安装黄瓜。我希望你有想法帮助我排除故障。
$ bundle exec cucumber --version
/Users/jesper/.rvm/gems/ruby-2.2.0@vcard/gems/cucumber-2.0.0.rc.4/lib/cucumber/cli/configuration.rb:188:in `<class:Configuration>': uninitialized constant Logger::Formatter (NameError)
from /Users/jesper/.rvm/gems/ruby-2.2.0@vcard/gems/cucumber-2.0.0.rc.4/lib/cucumber/cli/configuration.rb:12:in `<module:Cli>'
from /Users/jesper/.rvm/gems/ruby-2.2.0@vcard/gems/cucumber-2.0.0.rc.4/lib/cucumber/cli/configuration.rb:7:in `<module:Cucumber>'
from /Users/jesper/.rvm/gems/ruby-2.2.0@vcard/gems/cucumber-2.0.0.rc.4/lib/cucumber/cli/configuration.rb:6:in `<top (required)>'
from /Users/jesper/.rvm/gems/ruby-2.2.0@vcard/gems/cucumber-2.0.0.rc.4/lib/cucumber/cli/main.rb:10:in `require'
from /Users/jesper/.rvm/gems/ruby-2.2.0@vcard/gems/cucumber-2.0.0.rc.4/lib/cucumber/cli/main.rb:10:in `<top (required)>'
from /Users/jesper/.rvm/gems/ruby-2.2.0@vcard/gems/cucumber-2.0.0.rc.4/bin/cucumber:7:in `require'
from /Users/jesper/.rvm/gems/ruby-2.2.0@vcard/gems/cucumber-2.0.0.rc.4/bin/cucumber:7:in `<top (required)>'
from /Users/jesper/.rvm/gems/ruby-2.2.0@vcard/bin/cucumber:23:in `load'
from /Users/jesper/.rvm/gems/ruby-2.2.0@vcard/bin/cucumber:23:in `<main>'
from /Users/jesper/.rvm/gems/ruby-2.2.0@vcard/bin/ruby_executable_hooks:15:in `eval'
from /Users/jesper/.rvm/gems/ruby-2.2.0@vcard/bin/ruby_executable_hooks:15:in `<main>'
尝试使用最新版本1.3.19
,但我在1.3.18
和2.0.0.rc.4
上收到同样的错误。同样的错误
尝试直接作为cucumber --version´, and also tried to run
捆绑exec cucumber --version`运行,如上例所示。同样的错误。
尝试ruby 2.0.0
作为上面的示例。还尝试使用2.1.5
和2.2.0
以及2.2.0
。同样的错误
尝试作为单独的gemset(如上例所示)。也尝试作为全球gemset,并尝试作为项目的一部分。在上面的示例中,我从Gemfile
删除了所有其他宝石,因此gemset将从与黄瓜无关的所有内容中清除。
安装过程中没有错误(使用bundle install
)。
由于问题出现在我试过的所有黄瓜版本和红宝石版本中,我不怀疑黄瓜本身就是问题所在。还有其他我不想要的东西吗?
我使用RVM,你可能会看到,这是我gem environment
的结果:
$ gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 2.4.6
- RUBY VERSION: 2.2.0 (2014-12-25 patchlevel 0) [x86_64-darwin14]
- INSTALLATION DIRECTORY: /Users/jesper/.rvm/gems/ruby-2.2.0@vcard
- RUBY EXECUTABLE: /Users/jesper/.rvm/rubies/ruby-2.2.0/bin/ruby
- EXECUTABLE DIRECTORY: /Users/jesper/.rvm/gems/ruby-2.2.0@vcard/bin
- SPEC CACHE DIRECTORY: /Users/jesper/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Users/jesper/.rvm/rubies/ruby-2.2.0/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-14
- GEM PATHS:
- /Users/jesper/.rvm/gems/ruby-2.2.0@vcard
- /Users/jesper/.rvm/gems/ruby-2.2.0@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /Users/jesper/.rvm/gems/ruby-2.2.0@vcard/bin
- /Users/jesper/.rvm/gems/ruby-2.2.0@global/bin
- /Users/jesper/.rvm/rubies/ruby-2.2.0/bin
- /Users/jesper/.rvm/bin
- /usr/local/bin
- /Users/jesper/.gvm/vertx/current/bin
- /Users/jesper/.gvm/springboot/current/bin
- /Users/jesper/.gvm/lazybones/current/bin
- /Users/jesper/.gvm/jbake/current/bin
- /Users/jesper/.gvm/groovyserv/current/bin
- /Users/jesper/.gvm/groovy/current/bin
- /Users/jesper/.gvm/griffon/current/bin
- /Users/jesper/.gvm/grails/current/bin
- /Users/jesper/.gvm/gradle/current/bin
- /Users/jesper/.gvm/glide/current/bin
- /Users/jesper/.gvm/gaiden/current/bin
- /Users/jesper/.gvm/crash/current/bin
- /Users/jesper/.gvm/asciidoctorj/current/bin
- /Users/jesper/.dotfiles/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /Users/jesper/instantclient_11_2
您对
有什么建议吗?