libgfortran:找不到版本"GFORTRAN_1.4" [英] libgfortran: version `GFORTRAN_1.4' not found

查看:793
本文介绍了libgfortran:找不到版本"GFORTRAN_1.4"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆