install error

45 views
Skip to first unread message

Canjun Zhao

unread,
Nov 3, 2024, 12:57:42 AM11/3/24
to MBX-users
Dear users,

I have used the command'make mpi_mbx -j 40 CXX=mpicxx' to install mpi_box, but generating the error message:
/usr/bin/ld: ./liblammps_mpi_mbx.a(platform.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libdl.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:109: recipe for target '../lmp_mpi_mbx' failed
make[1]: *** [../lmp_mpi_mbx] Error 1

Could you please help me figure out what's wrong?

many thanks


Ethan Bull-Vulpe

unread,
Mar 21, 2025, 5:29:34 PMMar 21
to MBX-users
Hello Canjun,

If you are still having this issue, try adding the line:
LIB += -ldl
to the Makefile.mpi_mbx anywhere after LIB is defined but before it is used.

This usually fixes this problem in our experience.

-Ethan

Reply all
Reply to author
Forward
0 new messages