OS X 10.5 下 Ruby 的常规 GEM PATHS 是什么? [英] What are the Conventional GEM PATHS for Ruby under OS X 10.5?
问题描述
我的机器上的 ruby 存在性能问题,我认为我已将其隔离为加载库(当调用 #require 时),因此我正在尝试确定 ruby 是否正在为库搜索太多文件夹.
I have a performance problem with my ruby on my machine, which I think I have isolated to loading libraries (when #require is called), so I'm trying to work out whether ruby is searching too many folders for libraries.
当我跑步时
$ 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 中都有大量内容.
There's nothing much on /Users/matt/.gem, but there's tons in both /Library/Ruby and in /System/Library/Frameworks/Ruby.framework.
什么给了?这正常吗?
提前谢谢各位.
推荐答案
是的.这一切在我看来都很标准.我的运行 MacOS 10.5 的 mac 同样在 ~/.gem/ruby/1.8/gems/中没有任何内容,在其他两个位置也没有.
Yep. That all looks pretty standard to me. My mac running MacOS 10.5 similarly has nothing in ~/.gem/ruby/1.8/gems/ and quite a bit in the other two locations.
这篇关于OS X 10.5 下 Ruby 的常规 GEM PATHS 是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!