fenics-version command not found

In this troubleshooting guide we learn how to fix fenics-version command not found error message

Introduction

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

fenics-version: command not found

or when using sudo you get the following error message

sudo: fenics-version: command not found

Solutions to fenics-version: command not found

How To Fix fenics-version: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu fenics-version is provided by dolfin-bin package.

dolfin-bin is:

DOLFIN is the Python and C++ interface of the FEniCS project for the automated solution of differential equations, providing a consistent PSE (Problem Solving Environment) for solving ordinary and partial differential equations. Key features include a simple, consistent and intuitive object-oriented API; automatic and efficient evaluation of variational forms; automatic and efficient assembly of linear systems; and support for general families of finite elements.

This package contains executable scripts for DOLFIN.

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

sudo apt-get -y install dolfin-bin

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

You can also use apt command to install dolfin-bin.

sudo apt -y install dolfin-bin

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

sudo aptitude install dolfin-bin

Summary

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