This help site has been deprecated. Please send your requests to

What is a Ruby Gem

flister2's Avatar


24 Nov, 2020 05:19 PM

I am trying to understand how gem works but I am finding it hard to wrap my head around it. I know C, C++ and Python and have also built shared libraries but somehow I am just not able to understand the way gem works. For example, in C/C++ I use makefile to dynamically link libraries to run my socket program etc. But when I run a ruby code (through Chef specifically) I don't see how that gem is a dependency or used in runtime. Probably I am not looking at the right thing. Probably I am lost. Could anyone explain it to me by drawing an analogy to a standard shared library. (I'm into DevOps/SRE/Hybrid Cloud Infrastructure Automation if that matters)

Discussions are closed to public comments.
If you need help with please start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac