coderay command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
coderay: command not found
or when using sudo you get the following error message
sudo: coderay: command not found
Solutions to coderay: command not found
How To Fix coderay: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu coderay is provided by coderay package.
coderay is:
CodeRay is a Ruby library that can scan an input file or text in a web page and encode it as syntax highlighted HTML output.
CodeRay supports many input languages including: C, C++, CSS, Delphi, diff, Groovy, HTML, RHTML (Erb+HTML), Nitro-XHTML, Java, JavaScript, JSON, PHP, Python, Ruby, SQL and YAML.
CodeRay can output to HTML, JSON, XML, Yaml.
The coderay binary scans a file and outputs in HTML.
To fix this problem, we can install more using the command below.
sudo apt-get -y install coderay
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install coderay.
sudo apt -y install coderay
Or if you have aptitude installed you can use the following command.
sudo aptitude install coderay
Summary
In this tutorial we learn how to fix coderay command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.