我的机器上有我的红宝石的性能问题,我认为我已经孤立加载库(当#require被调用时),所以我试图找出是否ruby正在搜索太多的文件夹库.
当我跑
$gem environment RubyGems Environment: - RUBYGEMS VERSION: 1.3.0 - RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby - EXECUTABLE DIRECTORY: /usr/bin - RUBYGEMS PLATFORMS: - ruby - universal-darwin-9 - GEM PATHS: - /Library/Ruby/Gems/1.8 - /Users/matt/.gem/ruby/1.8 - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - :sources => ["http://gems.rubyforge.org","http://gems.github.com/"] - REMOTE SOURCES: - http://gems.rubyforge.org - http://gems.github.com/
/Users/matt/.gem没有什么,但是/ Library / Ruby和/System/Library/Frameworks/Ruby.framework都有吨.
是什么赋予了?这是正常吗?
谢谢提前,人们.
解决方法
是的.这一切对我而言都是非常标准的.我的mac运行MacOS 10.5同样没有在〜/ .gem / ruby / 1.8 / gems /和其他两个位置有一点.