macOS and Linux Executable Issues¶
Fully static linking is not possible on macOS and Linux platforms. If you encounter issues running downloaded Perple_X executables, the following information will help to resolve them. If problems persist, compiling from source is recommended; it is easier than you expect.
Linux¶
Linux executables are linked dynamically to core system
libraries (e.g., libc and libm). This approach
improves compatibility across distributions, but may limit portability to
systems with old, minimal, or non-standard library installations.
If an executable does not run, inspection of runtime dependencies:
ldd ./program_name
identifies missing libraries. These can then be installed using
the system package manager (e.g., apt, dnf, pacman).
macOS¶
If execution is blocked by macOS security controls, remove the quarantine attribute from the command line with:
xattr -d com.apple.quarantine ./program_name
Static linking is not supported by macOS.
To reduce external dependencies, the distributed executables include the
non-standard runtime libraries required by GNU Fortran
(libgfortran.5.dylib, libquadmath.0.dylib, and libgcc_s.1.dylib),
while relying on Apple-provided libraries for core functionality.
If, after removing quarantine attributes, an executable does not run, inspection of runtime dependencies:
otool -L ./program_name
identifies missing libraries. Missing GNU Fortran runtime libraries can be installed via Homebrew:
brew install gcc
That Apple-provided libraries are missing is unusual. However, should this occur, they can be installed with:
xcode-select --install