It cannot load metis in ubuntu 16.04

When I install the freefem++ on ubuntu 16.04, running the examples in hpddm and ffddm cannot load metis. The following is the error:

6 & load “metis”
7 & macro partitionerSeq(part, Th, size)metisdual(part, Th, size)// EOM
macro partitionerPar(part, Th, comm, size)broadcast(processor(0, comm), part)// EOM
ENDIFMACRO
6 : load “metis”
load error : metis
fail :
dlerror : …/…/plugin/seq/metis.so: undefined symbol: METIS_PartMeshNodal
list prefix: ‘…/…/plugin/mpi/’ ‘’ ‘…/…/plugin/seq/’ list suffix : ‘’ , ‘.so’
current line = 6 mpirank 0 / 4
Load error : metis
line number :6, metis
current line = 6 mpirank 1 / 4
current line = 6 mpirank 3 / 4
current line = 6 mpirank 2 / 4
error Load error : metis
line number :6, metis
code = 2 mpirank: 0

Primary job terminated normally, but 1 process returned
a non-zero exit code… Per user-direction, the job has been aborted.


mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

Process name: [[31387,1],1]
Exit code: 2

what should I do ?