未找到宝石因为安装在不同的位置

时间:2015-03-25 19:16:52

标签: ruby-on-rails ruby

我有一些未被发现的宝石b / c我认为它们安装在错误的位置。我怎样才能解决这个问题?我的设置:

which gem allure-cucumber
/Users/qahq/.rvm/rubies/ruby-2.1.0/bin/gem

which gem cucumber
/Users/qahq/.rvm/rubies/ruby-2.1.0/bin/gem
/Users/qahq/.rvm/gems/ruby-2.1.0@idme-revelator/bin/cucumber

rvm gemset name
idme-revelator

RubyGems Environment:
  - RUBYGEMS VERSION: 2.4.6
  - RUBY VERSION: 2.1.0 (2013-12-25 patchlevel 0) [x86_64-darwin14.0]
  - INSTALLATION DIRECTORY: /Users/qahq/.rvm/gems/ruby-2.1.0@idme-revelator
  - RUBY EXECUTABLE: /Users/qahq/.rvm/rubies/ruby-2.1.0/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/qahq/.rvm/gems/ruby-2.1.0@idme-revelator/bin
  - SPEC CACHE DIRECTORY: /Users/qahq/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /Users/qahq/.rvm/rubies/ruby-2.1.0/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-14
  - GEM PATHS:
     - /Users/qahq/.rvm/gems/ruby-2.1.0@idme-revelator
     - /Users/qahq/.rvm/gems/ruby-2.1.0@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /Users/qahq/.rvm/gems/ruby-2.1.0@idme-revelator/bin
     - /Users/qahq/.rvm/gems/ruby-2.1.0@global/bin
     - /Users/qahq/.rvm/rubies/ruby-2.1.0/bin
     - /Users/qahq/.rvm/bin
     - /usr/local/bin
     - /usr/bin
     - /bin
     - /usr/sbin
     - /sbin

allure
-bash: allure: command not found

我猜测allure命令无效b / c它不在cucumber所在的正确目录中,b / c cucumber命令有效。

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

尝试使用bundle exec rails server

运行它