mpicc.lam command not found

In this troubleshooting guide we learn how to fix mpicc.lam command not found error message

Introduction

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

mpicc.lam: command not found

or when using sudo you get the following error message

sudo: mpicc.lam: command not found

Solutions to mpicc.lam: command not found

How To Fix mpicc.lam: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu mpicc.lam is provided by lam4-dev package.

lam4-dev is:

LAM (Local Area Multicomputer) is an open source implementation of the Message Passing Interface (MPI) standard.

This package provides the development headers and related files.

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

sudo apt-get -y install lam4-dev

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

You can also use apt command to install lam4-dev.

sudo apt -y install lam4-dev

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

sudo aptitude install lam4-dev

Summary

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