i386-tcc command not found

In this troubleshooting guide we learn how to fix i386-tcc command not found error message

Introduction

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

i386-tcc: command not found

or when using sudo you get the following error message

sudo: i386-tcc: command not found

Solutions to i386-tcc: command not found

How To Fix i386-tcc: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu i386-tcc is provided by tcc package.

tcc is:

TCC (for Tiny C Compiler) is a small and fast ANSI C compiler. It generates optimized x86 code, and can compile, assemble, and link several times faster than ‘gcc -O0’. Any C dynamic library can be used directly. It includes an optional memory and bounds checker, and bounds-checked code can be mixed freely with standard code. C script is also supported via the usual hash-bang mechanism.

NOTE: TCC is still somewhat experimental and is not recommended for production use. The code it generates is much less optimized than what GCC produces, and compiler bugs can have serious security consequences for your program.

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

sudo apt-get -y install tcc

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

You can also use apt command to install tcc.

sudo apt -y install tcc

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

sudo aptitude install tcc

Summary

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