Gems newbie - patience appreciated...

12 views
Skip to first unread message

Iron Phoenix

unread,
May 17, 2025, 2:23:16 AMMay 17
to RubyInstaller
As indicated, I'm new to gems. I have only the vaguest idea about them as addons. How new?  I don't even know what "rails" is yet... "rake" has something to do with C, right?

Reasonably familiar with Ruby without using gems/rails/rake.

Anyway...

Windows 11
Ruby 3.3.7 (w devkit)
Gems 3.5.22

I need to access XML files now.  The "standard" for this seems to be nokogiri.

I installed nokogiri, using this command in irb:
system "gem install nokogiri"

My stupid question is - how do I do the "require"...?  It does not accept just 
require 'nokogiri'


Thank you in advance...

Kris


irb(main):019> system "ruby --version"
ruby 3.3.7 (2025-01-15 revision be31f993d7) [x64-mingw-ucrt]
=> true
irb(main):020> system "gem --version"
3.5.22
=> true
irb(main):021> system "gem install nokogiri"
Using rubygems directory: C:/Users/Kris/.local/share/gem/ruby/3.3.0
Building native extensions. This could take a while...
Successfully installed racc-1.8.1
Successfully installed nokogiri-1.18.8-x64-mingw-ucrt
Parsing documentation for racc-1.8.1
Installing ri documentation for racc-1.8.1
Parsing documentation for nokogiri-1.18.8-x64-mingw-ucrt
Installing ri documentation for nokogiri-1.18.8-x64-mingw-ucrt
Done installing documentation for racc, nokogiri after 5 seconds
2 gems installed

A new release of RubyGems is available: 3.5.22 → 3.6.9!
Run `gem update --system 3.6.9` to update your installation.

=> true

Thierry

unread,
May 17, 2025, 1:21:38 PMMay 17
to RubyInstaller
How did you install ruby?
Reply all
Reply to author
Forward
0 new messages