Skip to content
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(不使用皮肤)
  • 不使用皮肤
折叠
CFD中文网

CFD中文网

  1. CFD中文网
  2. OpenFOAM
  3. 关于OpenFOAM-v1706安装失败的问题

关于OpenFOAM-v1706安装失败的问题

已定时 已固定 已锁定 已移动 OpenFOAM
21 帖子 7 发布者 22.1k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
回复
  • 在新帖中回复
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • M 离线
    M 离线
    maoyanjun_dut
    写于 最后由 赵一铭 编辑
    #1

    我在virtualbox 上安装的Ubuntu16.04系统,上安装OpenFOAM-v1706,按照openfoamwiki上关于v1612+的安装指导[进行的安装,结果出现了如log文件中的错误。请各位帮忙看一下是什么原因导致的错误。GCC版本lgcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)

    Making dependency list for source file data.C-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude   -fPIC -c meshes/pointMesh/pointPatches/constraint/symmetry/symmetryPointPatch.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/pointMesh/pointPatches/constraint/symmetry/symmetryPointPatch.o
    g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude   -fPIC -c meshes/pointMesh/pointPatches/constraint/wedge/wedgePointPatch.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/pointMesh/pointPatches/constraint/wedge/wedgePointPatch.o
    g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude   -fPIC -c meshes/pointMesh/pointPatches/derived/coupled/coupledFacePointPatch.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/pointMesh/pointPatches/derived/coupled/coupledFacePointPatch.o
    g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude   -fPIC -c meshes/pointMesh/pointPatches/derived/wall/wallPointPatch.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/pointMesh/pointPatches/derived/wall/wallPointPatch.o
    g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude   -fPIC -c meshes/pointMesh/pointBoundaryMesh/pointBoundaryMesh.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/pointMesh/pointBoundaryMesh/pointBoundaryMesh.o
    g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude   -fPIC -c meshes/boundBox/boundBox.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/boundBox/boundBox.o
    g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude   -fPIC -c meshes/treeBoundBox/treeBoundBox.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/treeBoundBox/treeBoundBox.o
    meshes/boundBox/boundBox.C: In member function ‘Foam::tmp<Foam::Field<Foam::Vector<double> > > Foam::boundBox::points() const’:
    meshes/boundBox/boundBox.C:110:34: internal compiler error: Segmentation fault
         pointField& pt = tpoints.ref();
                                      ^
    g++ -std=c++11 -m64 -DOPENFOAM_PLUS=1706 -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 -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM -IlnInclude -I. -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OpenFOAM/lnInclude -I/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/src/OSspecific/POSIX/lnInclude   -fPIC -c meshes/meshTools/matchPoints.C -o /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/meshTools/matchPoints.o
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
    /home/maoyanjun/OpenFOAM/OpenFOAM-v1706/wmake/rules/General/transform:28: recipe for target '/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/boundBox/boundBox.o' failed
    make: *** [/home/maoyanjun/OpenFOAM/OpenFOAM-v1706/build/linux64GccDPInt32Opt/src/OpenFOAM/meshes/boundBox/boundBox.o] Error 1
    make: *** Waiting for unfinished jobs....
    

    Blog:http://maoyanjun.top
    厚德如海,纳川有藏。上善若水,利物不张。大哉斯言,勤勉勿忘。

    1 条回复 最后回复
  • M 离线
    M 离线
    maoyanjun_dut
    写于 最后由 赵一铭 编辑
    #2

    准确的说应该是编译Thirdparty时就已经遇到的问题:

     15%] Python Wrapping - generating vtkCellLinksPython.cxx
    [ 15%] Python Wrapping - generating vtkCellLocatorPython.cxx
    [ 15%] Python Wrapping - generating vtkCellTypesPython.cxx
    In file included from /usr/include/c++/5/random:49:0,
                     from /usr/include/c++/5/bits/stl_algo.h:66,
                     from /usr/include/c++/5/algorithm:62,
                     from /home/maoyanjun/OpenFOAM/ThirdParty-v1706/build/linux64Gcc/ParaView-5.4.0/VTK/Common/Core/vtkSMPToolsInternal.h:15,
                     from /home/maoyanjun/OpenFOAM/ThirdParty-v1706/ParaView-v5.4.0/VTK/Common/Core/vtkSMPTools.h:33,
                     from /home/maoyanjun/OpenFOAM/ThirdParty-v1706/ParaView-v5.4.0/VTK/Common/ExecutionModel/vtkThreadedImageAlgorithm.cxx:27:
    /usr/include/c++/5/bits/random.h:4014:31: internal compiler error: Segmentation fault
         typename _CharT, typename _Traits>
                                   ^
    [ 15%] Building CXX object VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/vtkTrivialConsumer.cxx.o
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
    VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/build.make:1287: recipe for target 'VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/vtkThreadedImageAlgorithm.cxx.o' failed
    make[2]: *** [VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/vtkThreadedImageAlgorithm.cxx.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkDirectedAcyclicGraphClientServer.cxx.o
    [ 15%] Python Wrapping - generating vtkCompositeDataSetPython.cxx
    [ 15%] Python Wrapping - generating vtkCompositeDataIteratorPython.cxx
    [ 15%] Python Wrapping - generating vtkConePython.cxx
    [ 15%] Python Wrapping - generating vtkConvexPointSetPython.cxx
    [ 15%] Python Wrapping - generating vtkCubicLinePython.cxx
    [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkDirectedGraphClientServer.cxx.o
    [ 15%] Python Wrapping - generating vtkCylinderPython.cxx
    [ 15%] Python Wrapping - generating vtkDataSetCellIteratorPython.cxx
    [ 15%] Python Wrapping - generating vtkDataObjectCollectionPython.cxx
    [ 15%] Python Wrapping - generating vtkDataObjectPython.cxx
    [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkDistributedGraphHelperClientServer.cxx.o
    [ 15%] Python Wrapping - generating vtkDataObjectTypesPython.cxx
    [ 15%] Python Wrapping - generating vtkDataObjectTreePython.cxx
    [ 15%] Python Wrapping - generating vtkDataObjectTreeIteratorPython.cxx
    [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkEdgeListIteratorClientServer.cxx.o
    [ 15%] Python Wrapping - generating vtkDataSetAttributesPython.cxx
    [ 15%] Python Wrapping - generating vtkDataSetCollectionPython.cxx
    [ 15%] Python Wrapping - generating vtkDataSetPython.cxx
    [ 15%] Python Wrapping - generating vtkDirectedAcyclicGraphPython.cxx
    [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkEdgeTableClientServer.cxx.o
    CMakeFiles/Makefile2:2016: recipe for target 'VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/all' failed
    make[1]: *** [VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkEmptyCellClientServer.cxx.o
    

    Blog:http://maoyanjun.top
    厚德如海,纳川有藏。上善若水,利物不张。大哉斯言,勤勉勿忘。

    M 1 条回复 最后回复
  • 赵 离线
    赵 离线
    赵一铭
    写于 最后由 编辑
    #3

    我安装试试,安装完了告诉你嘿嘿

    M 1 条回复 最后回复
  • M 离线
    M 离线
    maoyanjun_dut
    在 中回复了 赵一铭 最后由 编辑
    #4

    @赵一铭 好的,谢谢。总是好奇新版本有啥好东西,总想看看。

    Blog:http://maoyanjun.top
    厚德如海,纳川有藏。上善若水,利物不张。大哉斯言,勤勉勿忘。

    1 条回复 最后回复
  • 赵 离线
    赵 离线
    赵一铭
    写于 最后由 编辑
    #5

    已经编译到热物理模型了,还没出现问题。我直接在我的系统上下载编译的:下载下来,./Allwmake,目前没问题啊。你具体怎么做的?

    M 2 条回复 最后回复
  • M 离线
    M 离线
    maoyanjun_dut
    在 中回复了 赵一铭 最后由 编辑
    #6

    @赵一铭 我是按照openfoamwiki上安装OpenFOAM-v1612+的安装方式进行安装的。链接文本

    Blog:http://maoyanjun.top
    厚德如海,纳川有藏。上善若水,利物不张。大哉斯言,勤勉勿忘。

    1 条回复 最后回复
  • M 离线
    M 离线
    maoyanjun_dut
    在 中回复了 赵一铭 最后由 编辑
    #7

    @赵一铭 而且我有同学和师兄都已经按照这个编译成功了,而我在虚拟机和双系统下都编不成功。很是奇怪,加点儿背。:crying:

    Blog:http://maoyanjun.top
    厚德如海,纳川有藏。上善若水,利物不张。大哉斯言,勤勉勿忘。

    1 条回复 最后回复
  • 赵 离线
    赵 离线
    赵一铭
    写于 最后由 编辑
    #8

    那个写的太繁琐了,我用岳哥那个虚拟机,直接下载1706,然后编译就好了,现在已经全部编译完了。

    M 1 条回复 最后回复
  • M 离线
    M 离线
    maoyanjun_dut
    在 中回复了 赵一铭 最后由 编辑
    #9

    @赵一铭 我这里不知道为什么总是出错,错误提示大概就是上面的样子,每一次出错的地方还不一样。虚拟机和ubuntu系统我都试过了。结果都这样。最理想的一次是icofoam编好了,但是发现其他的有一些求解器,还有blockmesh都没编好。

    Blog:http://maoyanjun.top
    厚德如海,纳川有藏。上善若水,利物不张。大哉斯言,勤勉勿忘。

    1 条回复 最后回复
  • M 离线
    M 离线
    maoyanjun_dut
    写于 最后由 编辑
    #10

    结论:在出错后,不断尝试重复编译七次之后,终于成功了,给大家提个醒,遇到困难,不要灰心,不要放弃,多尝试几次或许就好了。愿大家不要像我一样点背。天天好运。

    Blog:http://maoyanjun.top
    厚德如海,纳川有藏。上善若水,利物不张。大哉斯言,勤勉勿忘。

    L 1 条回复 最后回复
  • 赵 离线
    赵 离线
    赵一铭
    写于 最后由 编辑
    #11

    OMG...辛苦辛苦....我也编译完了,暂时还没玩..
    天天好运

    1 条回复 最后回复
  • M 离线
    M 离线
    mohui
    在 中回复了 maoyanjun_dut 最后由 编辑
    #12

    @maoyanjun_dut 我编译完了都没有出错,但是使用paraview出错,说是your opengl driver don not support require opengl feature for basic rendering, please exit and older version。关键我不知道如何更新旧的版本。

    M 1 条回复 最后回复
  • M 离线
    M 离线
    maoyanjun_dut
    在 中回复了 mohui 最后由 编辑
    #13

    @mohui 你这个是显卡驱动太旧了吧。试着更新一下驱动试试。

    Blog:http://maoyanjun.top
    厚德如海,纳川有藏。上善若水,利物不张。大哉斯言,勤勉勿忘。

    M 1 条回复 最后回复
  • M 离线
    M 离线
    mohui
    在 中回复了 maoyanjun_dut 最后由 编辑
    #14

    @maoyanjun_dut 关键显示的信息是指换成older version版本,所以 how?

    1 条回复 最后回复
  • 李东岳李 在线
    李东岳李 在线
    李东岳 管理员
    写于 最后由 编辑
    #15

    https://www.paraview.org/download/

    在这里直接下载bin文件,然后双击打开paraview,省去编译步骤。

    http://dyfluid.com/index.html
    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    M 1 条回复 最后回复
  • M 离线
    M 离线
    mohui
    在 中回复了 李东岳 最后由 编辑
    #16

    @李东岳 你好,已经按照你的操作步骤值机启动了paraview,但是我不知道如何打开已经计算结果。现在在计算文件中添加了后缀.foam文档,但是打开之后不能显示计算结果。

    李东岳李 1 条回复 最后回复
  • 李东岳李 在线
    李东岳李 在线
    李东岳 管理员
    在 中回复了 mohui 最后由 编辑
    #17

    @mohui 在 关于OpenFOAM-v1706安装失败的问题 中说:

    现在在计算文件中添加了后缀.foam文档,但是打开之后不能显示计算结果。

    默认显示第二个时间步的结果,如果没有第二个时间步,就没有结果

    http://dyfluid.com/index.html
    需要帮助debug算例的看这个 https://cfd-china.com/topic/8018

    M 1 条回复 最后回复
  • 程 离线
    程 离线
    程迪
    写于 最后由 编辑
    #18

    zcfd好像有个paraview的superbuild,可以参考一下。是把所有pv的第三方全部编译的。

    已婚,勿扰。
    本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。

    1 条回复 最后回复
  • M 离线
    M 离线
    mohui
    在 中回复了 李东岳 最后由 编辑
    #19

    @李东岳 已经完美的解决了,是我编译的问题。

    1 条回复 最后回复
  • L 离线
    L 离线
    LYD
    在 中回复了 maoyanjun_dut 最后由 李东岳 编辑
    #20

    @maoyanjun_dut ,您好,我想问下,您的OPENFOAM-v1706最后是怎么编译成功的,我现在在UBUNTU18.04上编译的时候,总是出现6a15fbd6-bb8d-4190-b2cf-b79d66e89092-image.png

    这个问题,是需要改原先安装包的文件配置吗?谢谢您,麻烦您了

    E 1 条回复 最后回复

  • 登录

  • 登录或注册以进行搜索。
  • 第一个帖子
    最后一个帖子
0
  • 最新
  • 版块
  • 东岳流体
  • 随机看[请狂点我]