"bash: gem: command not found"
RubyGems is a package manager for building, uploading, downloading and installing Ruby packages (also called "Gems"). When you install a Gem package, RubyGems automatically downloads and installs the Gem and all its dependencies/libraries.
Here is an instruction on how to install RubyGems on various Linux distros. When you install RubyGems, you also want to install Ruby development environment as well, which is needed to build Ruby extensions which are typically written in C language.
On Debian, Ubuntu or Linux Mint:
On CentOS, Fedora or RHEL:
On Arch Linux, RubyGems is included in the ruby package. So install ruby package from AUR. Then install development tools as well:
Subscribe to Ask Xmodulo
Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.