ffc-3 command not found

In this troubleshooting guide we learn how to fix ffc-3 command not found error message

Introduction

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

ffc-3: command not found

or when using sudo you get the following error message

sudo: ffc-3: command not found

Solutions to ffc-3: command not found

How To Fix ffc-3: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ffc-3 is provided by python3-ffc package.

python3-ffc is:

The FEniCS Form Compiler FFC provides state-of-the-art automatic and efficient evaluation of general multilinear forms (variational formulations) for FEniCS. FFC functions as the form evaluation system for DOLFIN but can also be used to compile forms for other systems.

FFC works as a compiler for multilinear forms by generating code (C or C++) for the evaluation of a multilinear form given in mathematical notation. This new approach to form evaluation makes it possible to combine generality with efficiency; the form can be given in mathematical notation and the generated code is as efficient as hand-optimized code.

This package installs the legacy FFC library for Python 3.

You may want to consider installing python3-ffcx instead to get the next-generation FFC-X.

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

sudo apt-get -y install python3-ffc

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

You can also use apt command to install python3-ffc.

sudo apt -y install python3-ffc

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

sudo aptitude install python3-ffc

Summary

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