I have installed RSpec with the gem (gem install rspec) command. Everything went ok. If I try to reinstall it again, I get a message like it has already been installed.
When I try to use rspec from the command line on Ubuntu, the terminal can’t find the program.
My question is does the gem command only install the libraries, meaning I need to manually install the rspec executable myself, or is the gem command supposed to install everything, which would mean something went wrong during the install?
I have confirmed that the executable does get installed and should be able to run on it’s own.
You can verify that the gem is installed by checking the list of installed gem using : gem query.
You can also check the paths used by gem using: gem env.
This should give you the path to the Ruby version the gems are using, their executable path (so you can update your path) and where they are stored.
Make sure they are configured to use the correct Ruby version (if you use more than one) and the path is in you $PATH variable.