Forum: Ruby Local gems not loaded in ruby > 1.9 without custom_require

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
4bcff3ac4cfa40d3375a9bfe855ca851?d=identicon&s=25 Benjamin T. (bterkuile)
on 2010-03-21 07:39
I have a Kubuntu 9.10 64bit installation. I run ruby 1.8.7 and 1.9.1
next to eachother.
gem1.9.1 env returns:
     - /usr/lib/ruby1.9.1/gems/1.9.1
     - /home/username/.gem/ruby/1.9.1
but gems installed locally are not found by using require.
require 'rubygems'
require 'mygem'
will fail
require 'rubygems/custom_require'
require 'mygem'
is ok.
Is this an installation issue or due to the fact that gems are supposed
to load using a ruby installation even without requiring rubygems.

It is not a major issue, but nice if things work out of the box :)
This topic is locked and can not be replied to.