Issue #11971 has been updated by Am I Who.


Nobuyoshi Nakada wrote:
> ~~~
> $ GEM_PATH=/ ruby2.3 -e 'p Gem.path'
> ["/", "/opt/local/lib/ruby2.3/gems/2.3.0"]
> $ GEM_HOME=/ ruby2.3 -e 'p Gem.path'
> ["/Users/nobu/.gem/ruby/2.3.0", "/opt/local/lib/ruby2.3/gems/2.3.0", "/"]
> ~~~
> 
> Seems present.

Sorry for my fault, It needs both GEM_HOME and GEM_PATH has seted.


----------------------------------------
Bug #11971: Gem.path lost default path '[installdir]/lib/ruby/gems/2.3.0' when GEM_HOME and GEM_PATH has seted
https://bugs.ruby-lang.org/issues/11971#change-56040

* Author: Am I Who
* Status: Feedback
* Priority: Normal
* Assignee: 
* ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [x64-mingw32]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
Version: ruby 2.3.0 and gem 2.5.1

Gem.path lost default path '[installdir]/lib/ruby/gems/2.3.0' when GEM_HOME and GEM_PATH has been set
So require stdlib like 'test-unit' or 'rake' will raise 'LoadError'


But ruby 2.2.3 and gem 2.5.1 no this problem



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>