本文介绍了GEM_HOME和GEM_PATH有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

RubyGems是一种Ruby编程语言的包管理器,它提供了一种用于分发Ruby程序和库的标准格式(以一种称为gem的独立格式),这是一种旨在轻松管理gem安装的工具,以及一个分发它们的服务器。它类似于Python编程语言的EasyInstall。 RubyGems现在是Ruby 1.9标准库的一部分。



也就是说,GEM_HOME和GEM_PATH有什么不同?



GEM_HOME是宝石会在哪里被安装(默认)。



(因此GEM_PATH应该包含GEM_HOME)。


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.

That said, what's the difference between GEM_HOME and GEM_PATH?

解决方案

GEM_PATH provides the locations (there may be several) where gems can be found.

GEM_HOME is where gems will be installed (by default).

(Therefore GEM_PATH should include GEM_HOME).

这篇关于GEM_HOME和GEM_PATH有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-29 13:25