| Start |
|---|
| Gems In this example we will use 'nokogiri' as an example gem. 'nokogiri' can later on be replaced by any other gem name. To work with gems we use a command line tool called Install gems: But that is not the only thing we need. We can also specify version, source from which to install or search for gems. Lets start with some basic use cases (UC) and you can later on post request for an update. Listing all the installed gems: Uninstalling gems: If we have more version of the nokogiri gem we will be prompted to specify which one we want to uninstall. We will get a list that is ordered and numbered and we just write the number. Updating gems or if we want to update them all Comman |
| Installing Ruby macOS So the good news is that Apple kindly includes a Ruby interpreter. Unfortunately, it tends not to be a recent version: If you have Homebrew installed (opens new window), you can get the latest Ruby with: (It's likely you'll see a more recent version if you try this.) In order to pick up the brewed version without using the full path, you'll want to add Adding that line to Homebrew will install |
| Linux - Compiling from source `This way you will get the newest ruby but it has its downsides. Doing it like this ruby will not be managed by any application. !! Remember to chagne the version so it coresponds with your !!
This will install ruby into |
| Linux—Installation using a package manager Probably the easiest choice, but beware, the version is not always the newest one. Just open up terminal and type (depending on your distribution) in Debian or Ubuntu using apt in CentOS, openSUSE or Fedora You can use the |
| Windows - Installation using installer Probably the easies way to set up ruby on windows is to go to http://rubyinstaller.org/ (opens new window) and from there donwload an executable that you will install. You don't have to set almost anything, but there will be one important window. It will have a check box saying Add ruby executable to your PATH. Confirm that it is checked, if not check it or else you won't be able to run ruby and will have to set the PATH variable on your own. Then just go next until it installs and thats that. |
| Linux - troubleshooting gem install First UC in the example Gems First UC solution a: U can use First UC solution b U can use the option First UC solution c U can set GEM_HOME and GEM_PATH wich then will make command
|
Read Article
https://develop.horje.com/learn/1434/reference