OS X 10.5下Ruby的常规GEM PATHS是什么? [英] What are the Conventional GEM PATHS for Ruby under OS X 10.5?
问题描述
我在我的机器上遇到了性能问题,我认为我已经加载了库(当调用#require时),所以我正在设法确定ruby是否为库搜索太多的文件夹。
当我运行时,
$ gem environment
RubyGems环境:
- RUBYGEMS VERSION:1.3.0
- RUBY VERSION:1.8.6(2008-03-03 patchlevel 114)[universal-darwin9.0]
- 安装目录:/ Library /Ruby/Gems/1.8
- RUBY EXECUTABLE:/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
- 可执行目录:/ usr / bin
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-9
- 创业板路径:
- /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
- 创业板配置:
- : update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => [http://gems.rubyforge.org,http://gems.github.com/]
- 远程源:
- http://gems.rubyforge.org
- http://gems.github.com/
/ Users / matt /.gem,但是/ Library / Ruby和/System/Library/Frameworks/Ruby.framework中都有很多。
是什么给出的?这是正常的吗?
预先感谢,伙计们。 是的。这一切对我来说都很标准。运行MacOS 10.5的我的Mac同样在〜/ .gem / ruby / 1.8 / gems /中没有任何内容,并且在其他两个位置相当。
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.
When I run
$ 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/
There's nothing much on /Users/matt/.gem, but there's tons in both /Library/Ruby and in /System/Library/Frameworks/Ruby.framework.
What gives? Is this normal?
Thanks in advance, folks.
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屋!