Eodus
09-05-2016, 10:29 AM
Installed a particular gem via Windows command-line with administrator privileges. Browsed to C:\Ruby200\bin and installed like so:
gem install some-gem
Everything appeared to install correctly. Now, trying to load a library, like so:
require 'some-gem'
Results in the following error:
J>;test_gem_require
--- Lich: test_gem_require active.
--- Lich: error: cannot load such file -- some-gem
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
--- Lich: test_gems has exited.
"some-gem" is an actual gem, but irrelevant to the the issue. I am not a Ruby dev, but learning. Do I need to reference a different path? What am I doing wrong?
gem install some-gem
Everything appeared to install correctly. Now, trying to load a library, like so:
require 'some-gem'
Results in the following error:
J>;test_gem_require
--- Lich: test_gem_require active.
--- Lich: error: cannot load such file -- some-gem
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
C:/Ruby200/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
--- Lich: test_gems has exited.
"some-gem" is an actual gem, but irrelevant to the the issue. I am not a Ruby dev, but learning. Do I need to reference a different path? What am I doing wrong?