ruby-prof-check-trace command not found

In this troubleshooting guide we learn how to fix ruby-prof-check-trace command not found error message

Introduction

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

ruby-prof-check-trace: command not found

or when using sudo you get the following error message

sudo: ruby-prof-check-trace: command not found

Solutions to ruby-prof-check-trace: command not found

How To Fix ruby-prof-check-trace: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ruby-prof-check-trace is provided by ruby-prof package.

ruby-prof is:

ruby-prof is a fast code profiler for Ruby. It is a C extension and therefore is many times faster than the standard Ruby profiler. It supports both flat and graph profiles. For each method, graph profiles show how long the method ran, which methods called it and which methods it called. RubyProf generate both text and html and can output it to standard out or to a file.

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

sudo apt-get -y install ruby-prof

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

You can also use apt command to install ruby-prof.

sudo apt -y install ruby-prof

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

sudo aptitude install ruby-prof

Summary

In this tutorial we learn how to fix ruby-prof-check-trace command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.