grainextract command not found

In this troubleshooting guide we learn how to fix grainextract command not found error message

Introduction

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

grainextract: command not found

or when using sudo you get the following error message

sudo: grainextract: command not found

Solutions to grainextract: command not found

How To Fix grainextract: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu grainextract is provided by esys-particle package.

esys-particle is:

ESyS-Particle is Open Source software for particle-based numerical modelling. The software implements the Discrete Element Method (DEM), a widely used technique for modelling processes involving large deformations, granular flow and/or fragmentation. ESyS-Particle is designed for execution on parallel supercomputers, clusters or multi-core PCs running a Linux-based operating system. The C++ simulation engine implements spatial domain decomposition via the Message Passing Interface (MPI). A Python wrapper API provides flexibility in the design of numerical models, specification of modelling parameters and contact logic, and analysis of simulation data. ESyS-Particle has been utilised to simulate earthquake nucleation, comminution in shear cells, silo flow, rock fragmentation, and fault gouge evolution, to name but a few applications.

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

sudo apt-get -y install esys-particle

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

You can also use apt command to install esys-particle.

sudo apt -y install esys-particle

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

sudo aptitude install esys-particle

Summary

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