问题描述
RubyGems 是 Ruby 编程语言的包管理器,它提供了一种用于分发 Ruby 程序和库的标准格式(采用称为gem"的自包含格式),一种旨在轻松管理 gem 安装的工具,以及分发它们的服务器.它类似于 Python 编程语言的 EasyInstall.RubyGems 现在是 Ruby 1.9 版标准库的一部分.
RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries (in a self-contained format called a "gem"), a tool designed to easily manage the installation of gems, and a server for distributing them. It is analogous to EasyInstall for the Python programming language. RubyGems is now part of the standard library from Ruby version 1.9.
也就是说,GEM_HOME 和 GEM_PATH 有什么区别?
That said, what's the difference between GEM_HOME and GEM_PATH?
推荐答案
GEM_PATH
提供了可以找到 gem 的位置(可能有多个).
GEM_PATH
provides the locations (there may be several) where gems can be found.
GEM_HOME
是 gem 的安装位置(默认).
GEM_HOME
is where gems will be installed (by default).
(因此 GEM_PATH
应该包含 GEM_HOME
).
(Therefore GEM_PATH
should include GEM_HOME
).
这篇关于GEM_HOME 和 GEM_PATH 有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!