erubis command not found
In this troubleshooting guide we learn how to fix erubis command not found error message
Introduction
When you run more command in linux terminal / console, you get the following error message
erubis: command not found
or when using sudo you get the following error message
sudo: erubis: command not found
Solutions to erubis: command not found
How To Fix erubis: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu erubis is provided by ruby-erubis package.
ruby-erubis is:
Erubis is a very fast eRuby implementation that features:
- Multi-language support (Ruby/PHP/C/Java/Scheme/Perl/Javascript)
- Auto escaping support
- Auto trimming spaces around ‘<% %>’
- Embedded pattern changeable (default ‘<% %>’)
- Enable to handle Processing Instructions (PI) as embedded pattern
- Context object available and easy to combine eRuby template with YAML file
- Print statement available
- Easy to extend and customize in subclass
- Ruby on Rails support
To fix this problem, we can install more using the command below.
sudo apt-get -y install ruby-erubis
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install ruby-erubis.
sudo apt -y install ruby-erubis
Or if you have aptitude installed you can use the following command.
sudo aptitude install ruby-erubis
Summary
In this tutorial we learn how to fix erubis command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.