mpic++.lam command not found

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

Introduction

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

mpic++.lam: command not found

or when using sudo you get the following error message

sudo: mpic++.lam: command not found

Solutions to mpic++.lam: command not found

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

In Ubuntu mpic++.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 mpic++.lam command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.