mpgrafic command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mpgrafic: command not found
or when using sudo you get the following error message
sudo: mpgrafic: command not found
Solutions to mpgrafic: command not found
How To Fix mpgrafic: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mpgrafic is provided by mpgrafic package.
mpgrafic is:
mpgrafic produces initial conditions files for N-body simulations of cosmological large-scale structure formation. It is a free-licensed, MPI-parallelised, rewritten version of Ed Bertschinger’s grafic-1 program, producing output files in the grafic format. It includes options for an Eisenstein and Hu baryonic wiggles power spectrum, for using a low-resolution map for large-scale modes in the spirit of grafic-2, and together with constrfield, can be used for generating constrained initial conditions. Details are given in Prunet et al (2008) http://cdsads.u-strasbg.fr/abs/2008ApJS..178..179P.
To fix this problem, we can install more using the command below.
sudo apt-get -y install mpgrafic
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install mpgrafic.
sudo apt -y install mpgrafic
Or if you have aptitude installed you can use the following command.
sudo aptitude install mpgrafic
Summary
In this tutorial we learn how to fix mpgrafic command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.