找不到Bundler

时间:2011-08-04 08:24:12

标签: ruby-on-rails rubygems bundler dreamhost

我正在尝试让Bundler在我的Dreamhost帐户上运行。当我在我的应用程序中键入bundle update时,我得到了

  

-bash:bundle:command not found

我在gem bundler中安装了bundler 1.0.15

gem environment导致:

RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.6
  - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/tarscher/gems
  - RUBY EXECUTABLE: /usr/bin/ruby1.8
  - EXECUTABLE DIRECTORY: /home/tarscher/gems/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/tarscher/gems
     - /usr/lib/ruby/gems/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gempath" => ["/home/tarscher/gems", "/usr/lib/ruby/gems/1.8"]
     - "gemhome" => "/home/tarscher/gems"
  - REMOTE SOURCES:
     - http://rubygems.org/

我配置了.bashrc

# ~/.bashrc: executed by bash(1) for non-login shells.
PATH=$PATH:/usr/lib/ruby/gems/1.8/bin;/home/myuser/gems/bin

和我的.gemrc

gemhome: /home/myuser/gems
gempath:
- /home/tarscher/gems
- /usr/lib/ruby/gems/1.8

更新 当我进入/home/myuser/gems/bin捆绑脚本所在的位置dir并输入bundle时,我也得到-bash: bundle: command not found

有人知道为什么找不到捆绑包?

由于

1 个答案:

答案 0 :(得分:1)

这里有一个错误:

PATH=$PATH:/usr/lib/ruby/gems/1.8/bin;/home/myuser/gems/bin

路径必须用:分隔,而不是;