libgfortran:找不到版本"GFORTRAN_1.4" [英] libgfortran: version `GFORTRAN_1.4' not found
问题描述
尝试在MATLAB中运行mex文件时出现以下错误:
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/glnxa64/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by /usr/lib/libblas.so.3gf)
有什么想法可以解决这个问题吗?
Any ideas how to solve this problem?
更新: 我发现字符串MATLAB/.../libgfortran.so.3 | grep GFORTRAN"输出GFORTRAN_1.0.我试图在MATLAB中更改libgfortran,但是没有用.不是,我认为最好找到一个适合GFORTRAN_1.0的libblas.
update: I found out that "strings MATLAB/.../libgfortran.so.3 | grep GFORTRAN" output GFORTRAN_1.0. I tried to changed libgfortran inside MATLAB but it didn't work. Not I think it's better to find a suitable libblas that works with GFORTRAN_1.0.
推荐答案
read this link, it explains how to configure matlab on some linux systems.
此处是与您相关的步骤:
here the steps that are relevant to you:
要启用正在运行的外部程序,需要正确更新和链接[…] fortran库.查看此命令的输出:
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
[…]更新Matlab的链接以指向这些较新的版本:
[…] 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"
这篇关于libgfortran:找不到版本"GFORTRAN_1.4"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!