builder-c++ command not found

In this troubleshooting guide we learn how to fix builder-c++ command not found error message

Introduction

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

builder-c++: command not found

or when using sudo you get the following error message

sudo: builder-c++: command not found

Solutions to builder-c++: command not found

How To Fix builder-c++: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu builder-c++ is provided by pentium-builder package.

pentium-builder is:

Replaces gcc, cc, and g++ with scripts that build pentium optimized code. (Other processors can be optimized for as well.)

By default, after installing this package, the compilers will behave normally. However, if the environment variable DEBIAN_BUILDARCH=pentium is set, they will enter pentium optimized compile mode.

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

sudo apt-get -y install pentium-builder

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

You can also use apt command to install pentium-builder.

sudo apt -y install pentium-builder

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

sudo aptitude install pentium-builder

Summary

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