Rate This Document
Findability
Accuracy
Completeness
Readability

Error Reported During libfms.a Compilation

Symptom

When libfms.a is compiled, the error message "Package mpich2 was not found in the pkg-config search path" is displayed.

Key Process and Cause Analysis

The mpich2 parameter in linux-gnu.mk is not modified.

Conclusion and Solution

Run the following commands to modify the linux-gnu.mk file:

cd /path/to/MOM/MOM6-examples/src/mkmf/templates/

sed -ri 's/mpich2/ompi/g' linux-gnu.mk