ct_run command not found

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

Introduction

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

ct_run: command not found

or when using sudo you get the following error message

sudo: ct_run: command not found

Solutions to ct_run: command not found

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

In Ubuntu ct_run is provided by erlang-common-test package.

erlang-common-test is:

Common Test is a portable application for automated testing. It is suitable for black-box testing of target systems of any type (i.e. not necessarily implemented in Erlang), as well as for white-box testing of Erlang/OTP programs. Black-box testing is performed via standard interfaces (such as SNMP, HTTP, Corba, Telnet, etc) and, if required, via user specific interfaces (often called test ports). White-box testing of Erlang/OTP programs is easily accomplished by calling the target API functions directly from the test case functions. Common Test also integrates usage of the OTP cover tool for code coverage analysis of Erlang/OTP programs.

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

sudo apt-get -y install erlang-common-test

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

You can also use apt command to install erlang-common-test.

sudo apt -y install erlang-common-test

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

sudo aptitude install erlang-common-test

Summary

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