scons command not found

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

Introduction

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

scons: command not found

or when using sudo you get the following error message

sudo: scons: command not found

Solutions to scons: command not found

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

In Ubuntu scons is provided by scons package.

scons is:

SCons is a make replacement providing a range of enhanced features such as automated dependency generation and built in compilation cache support. SCons rule sets are Python scripts so as well as the features it provides itself SCons allows you to use the full power of Python to control compilation.

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

sudo apt-get -y install scons

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

You can also use apt command to install scons.

sudo apt -y install scons

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

sudo aptitude install scons

Summary

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