ffcx-3 command not found

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

Introduction

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

ffcx-3: command not found

or when using sudo you get the following error message

sudo: ffcx-3: command not found

Solutions to ffcx-3: command not found

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

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

python3-ffcx 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 next-generation FFC-X library for Python 3.

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

sudo apt-get -y install python3-ffcx

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

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

sudo apt -y install python3-ffcx

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

sudo aptitude install python3-ffcx

Summary

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