解决:MATLAB_Compiler_Runtime libgfortran.so.3: version `GFORTRAN_1.4' not found
来源:互联网 发布:装修风格效果图软件 编辑:程序博客网 时间:2024/05/22 01:28
今天运行程序时出现一个小错误:
/opt/MATLAB/MATLAB_Compiler_Runtime/v717/sys/os/glnxa64/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by /usr/lib/liblapack.so.3gf)
错误原因:大概是因为我的程序中用到了liblapack,而liblapack又用到了libgfortran,但是MATLAB_Compiler_Runtime中带来的这个版本的libgfortran版本不是所需的版本,所以就出现了上述错误。以前没看到这个错误,最近新装了MATLAB_Compiler_Runtime,覆盖了原来可用的版本估计。解决方法很简单,顺便记录在此。
看到这个错误第一反映是搜了一下系统里有没有这个:
$ locate GFORTRAN_1.4$ locate GFORTRAN都没搜到!
$ GFORTRAN --versionGFORTRAN: command not found$ gfortran --versionThe program 'gfortran' is currently not installed. You can install it by typing:sudo apt-get install gfortran还是什么也没搜到。差一点就按提示安装一下了。三思而后行的习惯告诉我应该先Google一下。于是没有做任何安装,保持系统原样。进行如下一些操作就可以了(库名是小写而已,之前搜错名字了):
$ locate libgfortran/opt/MATLAB/MATLAB_Compiler_Runtime/v717/sys/os/glnxa64/libgfortran.so.3/opt/MATLAB/MATLAB_Compiler_Runtime/v717/sys/os/glnxa64/libgfortran.so.3.0.0/opt/MATLAB/R2012a/sys/os/glnxa64/libgfortran.so.3/opt/MATLAB/R2012a/sys/os/glnxa64/libgfortran.so.3.0.0/usr/lib/x86_64-linux-gnu/libgfortran.so.3/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0/usr/share/doc/libgfortran3/var/cache/apt/archives/libgfortran3_4.9.2-0ubuntu1~12.04_amd64.deb/var/lib/dpkg/info/libgfortran3:amd64.list/var/lib/dpkg/info/libgfortran3:amd64.md5sums/var/lib/dpkg/info/libgfortran3:amd64.postinst/var/lib/dpkg/info/libgfortran3:amd64.postrm/var/lib/dpkg/info/libgfortran3:amd64.shlibs/var/lib/dpkg/info/libgfortran3:amd64.symbols$ locate libgfortran.so/opt/MATLAB/MATLAB_Compiler_Runtime/v717/sys/os/glnxa64/libgfortran.so.3/opt/MATLAB/MATLAB_Compiler_Runtime/v717/sys/os/glnxa64/libgfortran.so.3.0.0/opt/MATLAB/R2012a/sys/os/glnxa64/libgfortran.so.3/opt/MATLAB/R2012a/sys/os/glnxa64/libgfortran.so.3.0.0/usr/lib/x86_64-linux-gnu/libgfortran.so.3/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0
只需要做个symbolic link就可以了。选用/usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0版本。
$ ln -s /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0 /opt/MATLAB/MATLAB_Compiler_Runtime/v717/sys/os/glnxa64/libgfortran.so.3ln: failed to create symbolic link `/opt/MATLAB/MATLAB_Compiler_Runtime/v717/sys/os/glnxa64/libgfortran.so.3': File exists$ ln -sf /usr/lib/x86_64-linux-gnu/libgfortran.so.3.0.0 /opt/MATLAB/MATLAB_Compiler_Runtime/v717/sys/os/glnxa64/libgfortran.so.3
参考:
http://stackoverflow.com/questions/9628273/libgfortran-version-gfortran-1-4-not-found
http://stackoverflow.com/questions/9628273/libgfortran-version-gfortran-1-4-not-found
http://ubuntuforums.org/showthread.php?t=1901733&page=2&s=3d1af04ecad639a1c3f7696dadb83d0e
0 0
- 解决:MATLAB_Compiler_Runtime libgfortran.so.3: version `GFORTRAN_1.4' not found
- 解决 libgfortran.so.3: version `GFORTRAN_1.4' not found
- version `GFORTRAN_1.4' not found (required by /usr/lib/liblapack.so.3) 问题的解决方案
- Anaconda version `GFORTRAN_1.4' not found
- 解决libc.so.6: version `GLIBC_2.14' not found问题
- 解决libstdc++.so.6: version `GLIBCXX_3.4.15' not found问题
- 解决/libc.so.6: version `GLIBC_2.17' not found问题
- 解决/lib64/libc.so.6: version `GLIBC_2.14' not found
- 解决libc.so.6: version `GLIBC_2.14' not found问题
- 解决libc.so.6: version `GLIBC_2.14' not found问题
- 解决libc.so.6: version `GLIBC_2.14' not found问题
- 解决libc.so.6: version `GLIBC_2.14' not found问题
- 解决libc.so.6: version `GLIBC_2.14' not found问题
- 解决libc.so.6: version `GLIBC_2.14' not found问题
- 解决“libstdc++.so.6: version `GLIBCXX_3.4.18' not found”
- libstdc++.so.6: version `GLIBCXX_*.*.*' not found
- 编译QT出现/usr/lib/libstdc++.so.6:version 'GLIBCXX_3.4.9' not found /usr/lib/libstdc++.so.6:version 'GLIBCXX_3.4.11'not found的解决
- 解决"libc.so.6: version `GLIBC_2.14' not found"问题 试图运行程序,提示"libc.so.6: version `GLIBC_2.14' not found
- oracle导入导出整理(一)
- 阿里云linux服务器如何创建WordPress站点
- Spring 之注解事务 @Transactional
- github提交代码使用
- cocos3.x之C++11新特性
- 解决:MATLAB_Compiler_Runtime libgfortran.so.3: version `GFORTRAN_1.4' not found
- linux 路由表设置(双网卡)
- 【拓扑排序】 Codeforces Round #290 (Div. 1) A Fox And Names
- 一个项目经理的个人体会、经验总结
- 进程、控制终端、会话、守护进程
- C++的static静态函数
- VMWare Image Clone Problem: eth0 Renamed As eth1
- ios修改了coredata数据结构后,更新安装会闪退
- 关于大型网站技术演进的思考(一)--存储的瓶颈(1)