Compile problem

Hey there, thx for providing such a nice tool; I got a problem where I am trying to install mmg with libElas; I installed the elas lib and the cmake of mmg could be able to detect it, but when I call the mmg2d-o3 it is failed to load the; any ideas for solving this issue?



As you are looking for a .so, I assume that you are on a linux distribution. If yes, as the LinearElasticity software doesn’t install the libElas in a standard place (such as /usr/local/lib or /usr/lib), I think that you have to add the directory in which can be founded to your LD_LIBRARY_PATH.

For example, if is installed in $HOME/lib, you can add this directory with the command:
Then I hink that Mmg will run.

To ensure that the LinearElasticity install directory is always added to the LD_LIBRARY_PATH, you can add the previous export command to the configuration file of your shell interpreter (.bashrc, .zshrc…).

Do not hesitate to close the thread if it works or to contact me again if not.

Best Regards,

1 Like

Yes, you are right, it is not in the common LD load-path; Thx. I will close it;