I was attempting to install rubygems on a machine that has, and
otherwise runs ruby just fine (installed in /usr/local/).
every attempt at installing rubygems ends the same way:
after a slew of install -c lines that are fine, I get this
./lib/rubygems/custom_require.rb:27:in `gem_origonal_require’ : no
such file to load – socket (LoadError)
(there’s more to the error, but that machine has no network right now,
and I don’t feel like typing it all
I just had the exact same problem and solved it by installing/compiling
rubygems in a directory that is in my path. I used /usr/local and
everything came up fine.
jackster
Kyle S. wrote:
I was attempting to install rubygems on a machine that has, and
otherwise runs ruby just fine (installed in /usr/local/).
every attempt at installing rubygems ends the same way:
after a slew of install -c lines that are fine, I get this
./lib/rubygems/custom_require.rb:27:in `gem_origonal_require’ : no
such file to load – socket (LoadError)
(there’s more to the error, but that machine has no network right now,
and I don’t feel like typing it all
Hu. I thought the rebuild with no errors was proof it was good, but
socket was still missing. Apparently I had to pass --disable-ipv6 to
get the extensions to build clean on this box. The funny thing is,
that’s not an option ./configure --help lists.
My gems finally installed ok and I was able to pull down several gems
successfully. But now, I’m trying to run a simple script that uses
require “snmp” to poll some networking devices and I’m getting the
following error:
./snmp.rb:6: uninitialized constant SNMP (NameError)
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require’
from
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require’
from ./snmp.rb:5
I successfully installed the following 3 gems:
snmp (1.0.1)
snmpscan (0.1)
snmptop (0.0.1)
It looks to me like ruby isn’t finding the snmp gem that I installed?
Do you have any ideas that might help me now
thanks
jackster
Kyle S. wrote:
Hu. I thought the rebuild with no errors was proof it was good, but
socket was still missing. Apparently I had to pass --disable-ipv6 to
get the extensions to build clean on this box. The funny thing is,
that’s not an option ./configure --help lists.