Ubuntu18.04安装openfoam3.0.0报错



  • 各位前辈好!

    我目前在Ubuntu18.04下面相安装openfoam3.0.0,参考了openfoamwiki有关在Ubuntu 18.04安装of 3.0.1的教程,教程连接:链接文本

    自己一步步完全按照wiki上面的教程安装,安装到第14步 编译openfoam的时候,编译一会就报错如下:

    g++-5 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100  -IlnInclude -I. -I/home/abc/OpenFOAM/OpenFOAM-3.0.0/src/OpenFOAM/lnInclude -I/home/abc/OpenFOAM/OpenFOAM-3.0.0/src/OSspecific/POSIX/lnInclude   -fPIC -c reaction/reactions/makeLangmuirHinshelwoodReactions.C -o /home/abc/OpenFOAM/OpenFOAM-3.0.0/platforms/linux64GccDPInt32Opt/src/thermophysicalModels/specie/reaction/reactions/makeLangmuirHinshelwoodReactions.o
    reaction/reactions/makeReactions.C: In function ‘void __static_initialization_and_destruction_0(int, int)’:
    reaction/reactions/makeReactions.C:106:1: internal compiler error: 段错误
     }
     ^
    g++-5: internal compiler error: 段错误 (program cc1plus)
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
    make: *** [/home/abc/OpenFOAM/OpenFOAM-3.0.0/platforms/linux64GccDPInt32Opt/src/thermophysicalModels/specie/reaction/reactions/makeReactions.o] Error 4
    /home/abc/OpenFOAM/OpenFOAM-3.0.0/wmake/rules/General/transform:8: recipe for target '/home/abc/OpenFOAM/OpenFOAM-3.0.0/platforms/linux64GccDPInt32Opt/src/thermophysicalModels/specie/reaction/reactions/makeReactions.o' failed
    make: *** 正在等待未完成的任务....
    abc@abc-X11DAi-N:~/OpenFOAM/OpenFOAM-3.0.0$ 
    
    

    麻烦哪位前辈能够指点以下怎么解决呢? 谢谢


  • Linux讲师 OpenFOAM讲师

    如果完全按照教程,会有一个 log 文件,发上来看看:xiezuoye:



  • @bestucan 感谢前辈的回复,目前问题已经解决:xinxin:

    在编译OpenFOAM之前,需要先编译ThirdParty,但OpenFOAM WiKi中的Ubuntu18.04版安装教程里面好像并没有“编译ThirdParty这一步”,希望以后大家注意吧


Log in to reply
 

CFD中文网 2016 - 2020 | 京ICP备15017992号-2