【发布时间】:2014-11-15 17:14:59
【问题描述】:
我知道以前有人问过这个问题,但我无法用现有的建议来解决它。
我的gem环境如下:
gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.3 (2014-10-27 patchlevel 550) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.9.1
- RUBY EXECUTABLE: /usr/bin/ruby1.9.1
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/lib/ruby/gems/1.9.1
- /home/egge/.gem/ruby/1.9.1
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
我安装了我的 gem:
gem list --local | grep active
activesupport (4.1.7)
activesupport-inflector (0.1.0)
但是当我运行 ruby 时,却找不到:
/usr/bin/ruby1.9.1 -e 'require "active_support/inflector"'
-e:1:in `require': cannot load such file -- active_support/inflector (LoadError)
from -e:1:in `<main>'
我不知道为什么这个设置不起作用。
【问题讨论】:
标签: ruby rubygems ubuntu-14.04 activesupport