当前位置:  开发笔记 > 编程语言 > 正文

Rails - Bundle:找不到命令

如何解决《Rails-Bundle:找不到命令》经验,为你挑选了1个好方法。

当我尝试在Mac Bundler/bundler上运行/检查捆绑包时遇到问题当我做宝石列表时本地宝石列表--local

Gem env返回以下内容

 RubyGems Environment:
      - RUBYGEMS VERSION: 2.0.14
      - RUBY VERSION: 2.0.0 (2014-05-08 patchlevel 481) [universal.x86_64-darwin14]
      - INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.0.0
      - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
      - EXECUTABLE DIRECTORY: /usr/bin
      - RUBYGEMS PLATFORMS:
        - ruby
        - universal-darwin-14
      - GEM PATHS:
         - /Library/Ruby/Gems/2.0.0
         - /Users/jenny0322/.gem/ruby/2.0.0
         - /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/gems/2.0.0
      - GEM CONFIGURATION:
         - :update_sources => true
         - :verbose => true
         - :backtrace => false
         - :bulk_threshold => 1000
      - REMOTE SOURCES:
         - https://rubygems.org/

回声路径返回

/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin

哪个宝石返回

/usr/bin/gem

如何添加目录路径?我试过了

export PATH ="/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin:$PATH"

没有运气......



1> VKatz..:

看来Bundler没有安装在你的机器上.

你必须首先安装bundler.

1: gem install bundler

2: bundle install

希望这能帮到你!!!

推荐阅读
360691894_8a5c48
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有