1
我有一些紅寶石命名Bundler的麻煩。我的操作系統是Ubuntu 10.04。紅寶石寶石錯誤:沒有這樣的文件加載 - 捆綁器
我的環境如下:
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.6
- RUBY VERSION: 1.9.1 (2010-01-10 patchlevel 378) [i486-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby1.9.1/gems/1.9.1
- RUBY EXECUTABLE: /usr/bin/ruby1.9.1
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /usr/lib/ruby1.9.1/gems/1.9.1
- /home/mo/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
$ cat /proc/version
Linux version 2.6.32-21-generic ([email protected]) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)) #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
$ ruby -v
ruby 1.9.1p378 (2010-01-10 revision 26273) [i486-linux]
$ gem -v
1.3.6
我當地的寶石有:
- 抽象(1.0.0)
- 的ActionMailer(3.0.0.beta3)
- ActionPack的(3.0.0.beta3)
- activemodel的(3.0.0.beta3)
- 了activerecord(3.0.0。素β3)
- 的ActiveResource(3.0.0.beta3)
- 的ActiveSupport(3.0.0.beta3)
- AREL(0.3.3)
- 助洗劑(2.1.2)
- bundl ER(0.9.24)
- erubis(2.6.5)
- 國際化(0.3.7)
- 郵件(2.2.0)
- 的memcache客戶端(1.8.3)
- MIME類型(1.16)
- 通曉(0.3.1)
- 機架(1.1.0)
- 機架式(0.6.3)
- 架測試(0.5.3)
- 導軌(3.0.0.beta3)
- railties(3.0.0.beta3)
- 耙(0.8.7)
- 文本格式(1.0.0)
- 文本連字符(1.0.0 )
- 托爾(0.13.6)
- 樹梢(1.4.5)
- tzinfo(0.3.20)
這裏是我的錯誤:
$ irb1.9.1 -rubygems
irb(main):001:0> require "bundler"
LoadError: no such file to load -- bundler
from (irb):1:in `require'
from (irb):1
from /usr/bin/irb1.9.1:12:in `<main>'
我得到了同樣的錯誤,當我嘗試啓動的Rails 3:
$ rails start
/home/mo/quick_test_2/config/boot.rb:4:in `require': no such file to load -- bundler (LoadError)
from /home/mo/quick_test_2/config/boot.rb:4:in `<top (required)>'
from script/rails:8:in `require'
from script/rails:8:in `<main>'
更多有關我的版本捆紮機的:
$ gem list -d bundler
*** LOCAL GEMS ***
bundler (0.9.24)
Authors: Carl Lerche, Yehuda Katz, André Arko
Rubyforge: http://rubyforge.org/projects/bundler
Homepage: http://github.com/carlhuda/bundler
Installed at: /usr/lib/ruby1.9.1/gems/1.9.1
The best way to manage your application's dependencies
爲什麼我得到的錯誤?
您能否將您的答案標記爲答案? – 2010-09-21 15:57:12