rebar3 command not found

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

Introduction

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

rebar3: command not found

or when using sudo you get the following error message

sudo: rebar3: command not found

Solutions to rebar3: command not found

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

In Ubuntu rebar3 is provided by rebar3 package.

rebar3 is:

Rebar3 is an Erlang tool that makes it easy to create, develop, and release Erlang libraries, applications, and systems in a repeatable manner. Rebar3 will:

  • respect and enforce standard Erlang/OTP conventions for project structure so they are easily reusable by the community;
  • manage source dependencies and Erlang packages while ensuring repeatable builds;
  • handle build artifacts, paths, and libraries such that standard development tools can be used without a headache;
  • adapt to projects of all sizes on almost any platform;
  • treat documentation as a feature, and errors or lack of documentation as a bug.

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

sudo apt-get -y install rebar3

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

You can also use apt command to install rebar3.

sudo apt -y install rebar3

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

sudo aptitude install rebar3

Summary

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