I am getting the following error when I trying to a run mex file in MATLAB:
??? Invalid MEX-file
\'findimps3.mexa64\':
/MATLAB/bin/glnxa64/../../sys/os/glnxa
read this link, it explains how to configure matlab on some linux systems.
here the steps that are relevant to you:
To enable running external programs, […] fortran libraries need to be properly updated and linked. Look at the output of this command:
ll "$MATLABDIR/bin/glnxa64/"It is likely that [this link] exist:
libgfortran.so.3 -> libgfortran.so.3.0.0Search for [this library] on your machine:
locate libgfortran.so[…] Update Matlab's links to point to these newer versions:
sudo ln -sf [location of libgfortran.so.3.0.0] "$MATLABDIR/bin/glnxa64/libgfortran.so.3"