Problem with metis in make check

When I do make check I get FAIL in example/ed/schwarz-nm-3d.edp while loading “metis”

The error is:
dlerror : cannot open shared object file: No such file or directory
list prefix: ‘…/…/plugin/seq/’ ‘’ list suffix : ‘’ , ‘.so’
current line = 62
Load error : metis
line number :62, metis
error Load error : metis
line number :62, metis
code = 2 mpirank: 0

However, is present in /plugin/seq/.

Also I have a lot of XFAIL. Is that normal?

I solved this issue.
cp plugin/mpi/ plugin/seq/ .

Thank, but it does not work for me. is already present in /plugin/seq/

I have digging a little more and I have found a more precise error:

load error : metis
 fail : 

dlerror : /home/earanda/software/opt/lib/ff++/4.2-1/lib/ undefined symbol: METIS_PartMeshNodal

Any hints?

Go to your Freefem source directory (not install directory) and go to plugin/seq, then type ldd Next go to plugin/mpi, then type ldd Strangely only ${top-of-tour-Freefem-source directoryplugin}/mpi/ is linked with Now remove plugin/seq/ and cp plugin/mpi/ to plugin/seq then go to top of your Freefem source directory and type make check. In my case it reduce a number of fail and xfail tests.

In my case, none of (in plugin/seq and plugin/mpi) are linked with The command ldd in plugin/seq produces (0x00007ffd5f1cd000) => /usr/lib/x86_64-linux-gnu/ (0x00007f9e17092000) => /lib/x86_64-linux-gnu/ (0x00007f9e16e7a000) => /lib/x86_64-linux-gnu/ (0x00007f9e16c5b000) => /lib/x86_64-linux-gnu/ (0x00007f9e1686a000) => /lib/x86_64-linux-gnu/ (0x00007f9e164cc000)
/lib64/ (0x00007f9e17633000)

and in plugin/mpi: (0x00007ffee0d2c000) => /usr/lib/x86_64-linux-gnu/ (0x00007f1f1fbf2000) => /lib/x86_64-linux-gnu/ (0x00007f1f1f9da000) => /lib/x86_64-linux-gnu/ (0x00007f1f1f7bb000) => /lib/x86_64-linux-gnu/ (0x00007f1f1f3ca000) => /lib/x86_64-linux-gnu/ (0x00007f1f1f02c000)
/lib64/ (0x00007f1f20193000)

Then first, you should remove both plugin/seq/ and plugin/mpi/
Second, view where-library-config or where-library, then you can see both metis LD and parmetis LD. (I think when freefem compiles plugin, it uses parmetis LD instead of metis LD.)
Third add -lmetis to parmetis LD and go to top of source directory.
Finally, go to the top of source directory and type make and make check.

Thanks a lot @pistatex, it works perfectly fine.