ragel command not found

In this troubleshooting guide we learn how to fix ragel command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ragel: command not found

or when using sudo you get the following error message

sudo: ragel: command not found

Solutions to ragel: command not found

How To Fix ragel: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ragel is provided by ragel package.

ragel is:

Ragel compiles finite state machines from regular languages into C, C++, Objective-C, D, Ruby or Java code. Ragel allows the programmer to embed actions at any point in a regular language. Non-determinism can be controlled through the use of embedded priorities and guarded regular language operators. Ragel also supports the construction of scanners and the building of state machines using state-charts. Ragel can be used to create robust recognizers and parsers which run very fast. It can work with integer-sized alphabets and can compile large state machines. The generated code has no dependencies.

To fix this problem, we can install more using the command below.

sudo apt-get -y install ragel

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install ragel.

sudo apt -y install ragel

Or if you have aptitude installed you can use the following command.

sudo aptitude install ragel

Summary

In this tutorial we learn how to fix ragel command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.