libgfortran: version `GFORTRAN_1.4' not found

前端 未结 5 1213
旧时难觅i
旧时难觅i 2020-12-28 20:00

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         


        
5条回答
  •  情书的邮戳
    2020-12-28 20:43

    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.0
    

    Search 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"
    

提交回复
热议问题