ifort 编译报错

报错信息:

ld: cannot find -lm
ld: cannot find -lpthread
ld: cannot find -lc
ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5//libgcc.a when searching for -lgcc
ld: cannot find -lgcc
ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/5//libgcc_s.so when searching for -lgcc_s
ld: cannot find -lgcc_s
ld: cannot find -ldl
ld: cannot find -lc

ubuntu安装ifort 编译文件时报错,搜了下发现ifort32位和64位都安装了,系统只有64位,因此报错

依次执行

apt-get install lib32z1

apt-get install libstdc++5

apt-get install lib32stdc++6

apt-get install libc6-dev-i386

apt-get install gcc-multilib

apt-get install g++-multilib

 直到问题不在出现,完!

posted @ 2020-11-19 16:33  风起时的悟  阅读(560)  评论(0编辑  收藏  举报