ruby-build command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
ruby-build: command not found
or when using sudo you get the following error message
sudo: ruby-build: command not found
Solutions to ruby-build: command not found
How To Fix ruby-build: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu ruby-build is provided by ruby-build package.
ruby-build is:
ruby-build provides a simple way to compile and install different versions of Ruby.
ruby-build is great when you want to build Ruby versions that are not available via APT, for example if you need legacy or bleeding edge versions of Ruby.
Combined with rbenv, ruby-build lets you easily install and switch between different implementations of Ruby, such as MRI, JRuby, REE and others.
To fix this problem, we can install more using the command below.
sudo apt-get -y install ruby-build
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ruby-build.
sudo apt -y install ruby-build
Or if you have aptitude installed you can use the following command.
sudo aptitude install ruby-build
Summary
In this tutorial we learn how to fix ruby-build command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.