Perhaps you know that your M2 executable is located at /foo/bar/bin/M2, but when you run it, you get something like this:
|
Or something like this:
|
What that means is that M2 cannot locate its shared libraries. Hopefully, the missing shared libraries are located in /foo/bar/lib, and all we have to do is to tell the operating system by setting the environment variable LD_LIBRARY_PATH on Unix-based systems and DYLD_LIBRARY_PATH on MacOS-based systems.
If you have downloaded a version of Macaulay2 that comes with dynamically loaded libraries of its own, they will be in the directory /foo/bar/lib64/Macaulay2/lib.
|
After setting the environment variable temporarily, you can use setup to record the correct value in your system start up files.
The source of this document is in Macaulay2Doc/ov_getting_started.m2:320:0.