“ bundle exec spring”不能与rbenv一起使用?

ch

为什么不起作用bundle exec spring

我已经在打电话bundle exec,并且返回错误。我可以一直打bundle exec(这是可能的重复问题的解决方案)。

我不会通过来更新我的Gemfile,也不会bundle update spring卸载的版本spring来完成此工作。我不应该被迫更改我的gem安装。

bundle binstubs spring 也不起作用。

steve-air:finalcloud main$ spring -v
Spring version 1.3.5
steve-air:finalcloud main$ bundle exec spring -v
Spring version 1.3.4
steve-air:finalcloud main$ bundle exec spring
/Users/main/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:34:in `block in setup': You have already activated spring 1.3.5, but your Gemfile requires spring 1.3.4. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)
  from /Users/main/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.7/lib/bundler/runtime.rb:19:in `setup'
  from /Users/main/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.7/lib/bundler.rb:122:in `setup'
  from /Users/main/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/bundler-1.9.7/lib/bundler/setup.rb:8:in `<top (required)>'
  from /Users/main/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  from /Users/main/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  from /Users/main/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/spring-1.3.5/lib/spring/commands.rb:33:in `<module:Spring>'
  from /Users/main/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/spring-1.3.5/lib/spring/commands.rb:4:in `<top (required)>'
  from /Users/main/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  from /Users/main/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  from /Users/main/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/spring-1.3.5/lib/spring/server.rb:9:in `<top (required)>'
  from /Users/main/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `require'
  from /Users/main/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:128:in `rescue in require'
  from /Users/main/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:39:in `require'

复制:

  1. 已安装Ruby rebenv
  2. 卸载所有Spring gem。
  3. 安装较低版本的Spring(例如1.3.4)。
  4. 制作一个新的Rails应用程序。
  5. 安装更高版本的Spring(1.3.5似乎已消失,但我使用1.3.6进行了复制)。
  6. 按照上面我的命令行中的步骤操作。
MIRC

经过一番探索,似乎这里可能有一些事情在起作用:

  1. 系统通过捆绑器安装的宝石安装了宝石,并且特殊行为导轨具有
  2. 在rvm和bundle级别生成的binstub
  3. 1.3.5春季的怪异行为

这个问题的根本原因似乎是https://github.com/rails/spring/issues/295该问题已在1.3.6中修复。参见:https : //github.com/rails/spring/blob/master/CHANGELOG.md#136

不幸的是,事实证明您无法解决作者在问题中指定的约束。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Bundle exec无法与crontab一起使用

来自分类Dev

如何在RubyMine上使用bundle exec rake?

来自分类Dev

无法使用exec运行Laravel Envoy(可在命令行中使用,但不能与Artisan :: call一起使用)

来自分类Dev

使用RVM本地gemset和使用Bundle exec有区别吗?

来自分类Dev

与find -exec一起使用awk

来自分类Dev

使用bundle exec rspec规范时如何运行带有rspec标记的测试?

来自分类Dev

如何撤消Bundle exec rake db:setup?

来自分类Dev

Bundle Exec Rake DB迁移错误

来自分类Dev

bundle exec rake db:migrate 来自哪里?

来自分类Dev

与exec一起使用util.promisify不能解决git hook中的promise

来自分类Dev

CharacterEncodingFilter不能与Spring Security 3.2.0一起使用

来自分类Dev

CharacterEncodingFilter不能与Spring Security 3.2.0一起使用

来自分类Dev

Xcode 5--bundle_loader仅可与-bundle XCTest一起使用

来自分类Dev

php exec无法与vars一起使用

来自分类Dev

PHP exec命令无法与awk命令一起使用

来自分类Dev

将PV与find -exec一起使用

来自分类Dev

Travis CI:命令“ bundle exec rake”以1退出

来自分类Dev

运行“ Bundle exec rake”时出现分段错误

来自分类Dev

必须在bundle exec之前添加rake db:migrate

来自分类Dev

如何正确传输“bundle exec rake ...”命令的输出

来自分类Dev

Riot-iOS 错误:运行 bundle exec pod install 时

来自分类Dev

Spring事务管理不能与Spring Boot + MyBatis一起使用?

来自分类Dev

QSignalSpy不能与线程一起使用

来自分类Dev

LibreOffice为什么不能与HUD一起使用?

来自分类Dev

redirect_to不能与ajax一起使用

来自分类Dev

maxlength不能与Karma一起使用

来自分类Dev

readValue()不能与TypeReference一起使用

来自分类Dev

为什么模拟不能与AsyncTask一起使用?

来自分类Dev

谷歌云打印不能与phonegap一起使用

Related 相关文章

  1. 1

    Bundle exec无法与crontab一起使用

  2. 2

    如何在RubyMine上使用bundle exec rake?

  3. 3

    无法使用exec运行Laravel Envoy(可在命令行中使用,但不能与Artisan :: call一起使用)

  4. 4

    使用RVM本地gemset和使用Bundle exec有区别吗?

  5. 5

    与find -exec一起使用awk

  6. 6

    使用bundle exec rspec规范时如何运行带有rspec标记的测试?

  7. 7

    如何撤消Bundle exec rake db:setup?

  8. 8

    Bundle Exec Rake DB迁移错误

  9. 9

    bundle exec rake db:migrate 来自哪里?

  10. 10

    与exec一起使用util.promisify不能解决git hook中的promise

  11. 11

    CharacterEncodingFilter不能与Spring Security 3.2.0一起使用

  12. 12

    CharacterEncodingFilter不能与Spring Security 3.2.0一起使用

  13. 13

    Xcode 5--bundle_loader仅可与-bundle XCTest一起使用

  14. 14

    php exec无法与vars一起使用

  15. 15

    PHP exec命令无法与awk命令一起使用

  16. 16

    将PV与find -exec一起使用

  17. 17

    Travis CI:命令“ bundle exec rake”以1退出

  18. 18

    运行“ Bundle exec rake”时出现分段错误

  19. 19

    必须在bundle exec之前添加rake db:migrate

  20. 20

    如何正确传输“bundle exec rake ...”命令的输出

  21. 21

    Riot-iOS 错误:运行 bundle exec pod install 时

  22. 22

    Spring事务管理不能与Spring Boot + MyBatis一起使用?

  23. 23

    QSignalSpy不能与线程一起使用

  24. 24

    LibreOffice为什么不能与HUD一起使用?

  25. 25

    redirect_to不能与ajax一起使用

  26. 26

    maxlength不能与Karma一起使用

  27. 27

    readValue()不能与TypeReference一起使用

  28. 28

    为什么模拟不能与AsyncTask一起使用?

  29. 29

    谷歌云打印不能与phonegap一起使用

热门标签

归档