[英]Why I obtain this error message installing the Ruby bundler gem “ERROR: Failed to build gem native extension”?
[英]Ruby gem error: no such file to load — bundler
我在使用名为Bundler的Ruby宝石时遇到了一些麻烦。 我的操作系统是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版本2.6.32-21-通用(build @ rothera)(gcc版本4.4.3(Ubuntu 4.4.3-4ubuntu5))#32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
$ ruby -v
红宝石1.9.1p378(2010-01-10修订版26273)[i486-linux]
$ gem -v
1.3.6
我的本地宝石是:
这是我的错误:
$ 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>'
有关我的Bundler版本的更多信息:
$ 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
为什么会出现错误?
哇! 我真的不明白为什么,但是新的只是固定的! 魔术命令:
cp -r /usr/lib/ruby1.9.1/gems/1.9.1/gems/bundler-0.9.24/ /home/mo/.gem/ruby/1.9.1/gems/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.