bundle command not found in linux debian

懵懂的女人 提交于 2019-12-31 12:59:14

问题


When i enter bundle install I get the error '-bash: bundle: command not found'.

How do I find whether bundler is installed ?

gem environment returns the following

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

Can somebody explains me how to get the bundler command working ? I am a novice to this subject..


回答1:


gem install bundler

or probably, since there is an executable

sudo gem install bundler



回答2:


In addition to installing

gem install bundler

you need to put the gem installation directory in your path on Debian 11.04 with gems v1.8 I used

export PATH=/var/lib/gems/1.8/bin/:${PATH}


来源:https://stackoverflow.com/questions/6675373/bundle-command-not-found-in-linux-debian

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!