libgfortran: version `GFORTRAN_1.4' not found

前端 未结 5 1170
旧时难觅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:21

    In my case the following command worked:

    sudo ln -sf /usr/lib/gcc/i686-linux-gnu/4.7/libgfortran.so /usr/local/MATLAB/R2012a/sys/os/glnx86/libgfortran.so.3
    

    Matlab was complaining it couldn't find the GFORTRAN1.4 in the following location:

    /usr/lib/gcc/i686-linux-gnu/4.7/libgfortran.so
    

    So I linked this location to the library I had :

    /usr/local/MATLAB/R2012a/sys/os/glnx86/libgfortran.so.3
    

    I found the location of this library by using the locate command as given above:) Thanks for the help:)

提交回复
热议问题