24小时热门版块排行榜    

查看: 2468  |  回复: 6

Sparks__Fly

新虫 (小有名气)

[求助] VASP安装中openmpi安装失败的问题 已有3人参与

sudo ./configure --prefix=/usr/local/openmpi CC=gcc CXX=c++ F77=ifort FC=ifort。运行时失败,提示说找不到F77。但是如果单独安装(仅有sudo ./configure)则能够成功,但是无法把F77等与ifort联系起来。具体错误程序如下,求教啊

*** Fortran 77 compiler
checking whether we are using the GNU Fortran 77 compiler... no
checking whether ifort accepts -g... no

*** Fortran 90/95 compiler
checking whether we are using the GNU Fortran compiler... no
checking whether ifort accepts -g... no
checking if Fortran 77 compiler works... no
**********************************************************************
* It appears that your Fortran 77 compiler is unable to produce working
* executables.  A simple test application failed to properly
* execute.  Note that this is likely not a problem with Open MPI,
* but a problem with the local compiler installation.  More
* information (including exactly what command was given to the
* compiler and what error resulted when the command was executed) is
* available in the config.log file in this directory.
**********************************************************************
configure: error: Could not run a simple Fortran 77 program.  Aborting.
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

llh2010

至尊木虫 (著名写手)

【答案】应助回帖

★ ★ ★ ★
感谢参与,应助指数 +1
蛋蛋小童鞋: 金币+2, 谢谢参与,小木虫鼓励积极回答问题者 2016-09-22 20:44:04
Sparks__Fly: 金币+2, ★★★很有帮助, 谢谢 2016-09-23 10:23:24
全部都用Intel的编译器就行了。
sudo ./configure --prefix=/usr/local/openmpi  CC=icc F77=ifort FC=ifort CXX=icpc
知识引导人生,学习成就未来
2楼2016-09-22 20:24:17
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

llh2010

至尊木虫 (著名写手)

我估计有可能是你的Intel的编译器没有安装好,或是bashrc没写好,所以找不到ifort命令。
知识引导人生,学习成就未来
3楼2016-09-22 20:26:17
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

未岸亡灵

铁杆木虫 (著名写手)

暂时离开小木虫


【答案】应助回帖

★ ★ ★ ★
感谢参与,应助指数 +1
蛋蛋小童鞋: 金币+2, 谢谢参与,小木虫鼓励积极回答问题者 2016-09-22 20:44:15
Sparks__Fly: 金币+2, ★★★很有帮助, 谢谢 2016-09-23 10:23:50
准确,是你的intel编译器ifort没有配置好
4楼2016-09-22 20:40:55
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

园中园

新虫 (正式写手)

【答案】应助回帖

感谢参与,应助指数 +1
你先测试一下ifort ,正常运行后, sudo ./configure --prefix=/usr/local/openmpi  CC=icc F77=ifort FC=ifort CXX=icpc
追求,奋斗,再追求,再奋斗
5楼2016-09-23 11:07:43
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

白小云

铜虫 (初入文坛)

这个问题我也遇到了,已解决。原因是不使用sudo命令配置时会说权限不足,使用sudo命令用root用户去配置root用户没source过环境变量,导致sudo下没有ifort命令。解决方法:使su,输入密码,切换到root用户,输入source /home/YOU/.bashrc 配置环境变量,再./configure配置

发自小木虫IOS客户端
我白小骨回来了
6楼2017-02-28 16:55:50
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

名字好麻烦啊

新虫 (初入文坛)

引用回帖:
4楼: Originally posted by 未岸亡灵 at 2016-09-22 20:40:55
准确,是你的intel编译器ifort没有配置好

请问应该怎么配置呢?我用icc单独编译可以,命令which icc也正常,但就是使用sudo ./configure CC=icc F77=ifort FC=ifort CXX=icpc的时候,说"C compiler cannot create executables",在config.log里面有“./configure: line 5377: icc: command not found”,找不到icc。最后我使用完整路径才可以configure,命令是“sudo ./configure CC=/opt/intel/composer_xe_2011_sp1.6.233/bin/intel64/icc F77=/opt/intel/composer_xe_2011_sp1.6.233/bin/intel64/ifort FC=/opt/intel/composer_xe_2011_sp1.6.233/bin/intel64/ifort CXX=/opt/intel/composer_xe_2011_sp1.6.233/bin/intel64/icpc”
7楼2017-11-04 14:15:49
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 Sparks__Fly 的主题更新
信息提示
请填处理意见