Saya hosting di vps, ubuntu 10.04, rails 3, ruby dan mysql diinstal dengan benar dengan mengikuti beberapa tutorial. Jika saya menjalankan bundle check
atau bundle install
saya mendapatkan kesalahan '-bash: bundle: command not found'. Dari gem list --local
saya melihat 'bundler (1.0.2, 1.0.0)' diinstal.
Saya tidak tahu apa yang salah ...
gem environment
pengembalian:
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2010-04-19 patchlevel 253) [i686-linux]
- INSTALLATION DIRECTORY: /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /opt/ruby-enterprise-1.8.7-2010.02/bin/ruby
- EXECUTABLE DIRECTORY: /opt/ruby-enterprise-1.8.7-2010.02/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8
- /root/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
dan echo $PATH
mengembalikan:
/opt/myruby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin/gem:/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/:/root/.gem/ruby/1.8
dan which gem
mengembalikan:
/usr/bin/gem
locate bundle
pengembalian:
/opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/