derailed command not found

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

Introduction

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

derailed: command not found

or when using sudo you get the following error message

sudo: derailed: command not found

Solutions to derailed: command not found

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

In Ubuntu derailed is provided by ruby-derailed-benchmarks package.

ruby-derailed-benchmarks is:

A series of things you can use to benchmark a Rails or Ruby app.

There are two ways to benchmark an app. Derailed can either try to boot your web app and run requests against it while benchmarking, or it can statically give you more information about the dependencies that are in your Gemfile. Booting your app will always be more accurate, but if you cannot get your app to run in production locally, you’ll still find the static information useful.

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

sudo apt-get -y install ruby-derailed-benchmarks

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

You can also use apt command to install ruby-derailed-benchmarks.

sudo apt -y install ruby-derailed-benchmarks

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

sudo aptitude install ruby-derailed-benchmarks

Summary

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