Navigation

    CFD中文网

    CFD中文网

    • Login
    • Search
    • 最新

    openfoam 安装失败

    OpenFOAM
    3
    18
    599
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Y
      YuPeng last edited by

      使用李老师给的方法安装的,安装过程中出现了错误,请问应该怎么解决
      a117caca-b099-43d7-ac65-d9c4f6799b36-图片.png

      李东岳 1 Reply Last reply Reply Quote
      • 李东岳
        李东岳 管理员 @YuPeng last edited by

        @yupeng

        sudo apt update &&
        sudo apt-get install -y build-essential flex bison git-core cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev 
        

        输入一下再试试

        CFD课程 改成线上了 http://dyfluid.com/class.html
        CFD高性能服务器 http://dyfluid.com/servers.html

        Y 1 Reply Last reply Reply Quote
        • Y
          YuPeng @李东岳 last edited by

          @李东岳 还是不行
          6a6ef7f9-c456-4a2a-9894-881002449922-image.png

          Y 1 Reply Last reply Reply Quote
          • Y
            Yingdong @YuPeng last edited by

            @yupeng
            建议foamSystemCheck一下,如果是Ok的那就删除所有OpenFOAM相关的文件重新按照流程走一遍再编译

            Y 1 Reply Last reply Reply Quote
            • Y
              YuPeng @Yingdong last edited by

              @yingdong 你好,在.../bin里面没有找到foamSystemCheck.
              e3ccd401-7479-45a8-9cf5-198949e99cbe-image.png

              Y 1 Reply Last reply Reply Quote
              • Y
                Yingdong @YuPeng last edited by

                @yupeng https://openfoam.org/download/source/
                你按照这个网站的流程试试呢

                1 Reply Last reply Reply Quote
                • 李东岳
                  李东岳 管理员 last edited by

                  @李东岳 在 openfoam 安装失败 中说:

                  sudo apt update &&
                  sudo apt-get install -y build-essential flex bison git-core cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev

                  这个输完了之后截图

                  CFD课程 改成线上了 http://dyfluid.com/class.html
                  CFD高性能服务器 http://dyfluid.com/servers.html

                  Y 1 Reply Last reply Reply Quote
                  • Y
                    YuPeng @李东岳 last edited by

                    @李东岳 李老师,您看一下
                    b2ff99c5-607f-42dc-801d-0bb94f5559f9-image.png

                    1 Reply Last reply Reply Quote
                    • 李东岳
                      李东岳 管理员 last edited by

                      ls /usr/lib/x86_64-linux-gnu/openmpi/include

                      输出什么,你按照 http://dyfluid.com/docs/install.html 这里面安装的么,ubuntu几

                      CFD课程 改成线上了 http://dyfluid.com/class.html
                      CFD高性能服务器 http://dyfluid.com/servers.html

                      Y 1 Reply Last reply Reply Quote
                      • Y
                        YuPeng @李东岳 last edited by

                        @李东岳 自己使用的是阿里源所以没有按照教程的(1)(2)操作,后面的是按照教程操作的
                        aa8de88e-12b8-4b2e-89e2-88ed1f0a61a8-image.png

                        李东岳 1 Reply Last reply Reply Quote
                        • 李东岳
                          李东岳 管理员 @YuPeng last edited by

                          @yupeng 我这面出的服务器都是用我那个方式装openfoam,你要是有向日葵的话,告诉我登录码,我可以远程给你看一下。

                          CFD课程 改成线上了 http://dyfluid.com/class.html
                          CFD高性能服务器 http://dyfluid.com/servers.html

                          Y 1 Reply Last reply Reply Quote
                          • Y
                            YuPeng @李东岳 last edited by

                            @李东岳 不麻烦李老师了,我是在自己的一个小笔记本上装of,方便学习,我先再研究一下吧,本就是初学者,解决问题也可以积累一些经验。:chouchou:

                            李东岳 1 Reply Last reply Reply Quote
                            • 李东岳
                              李东岳 管理员 @YuPeng last edited by

                              @yupeng 你可以把你的OpenFOAM文件夹直接删掉,重新运行下面的试试

                              cd $HOME &&
                              mkdir OpenFOAM &&
                              sudo apt update &&
                              sudo apt-get install -y build-essential flex bison git-core cmake zlib1g-dev libboost-system-dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-dev libncurses-dev libxt-dev &&
                              cd OpenFOAM &&
                              git clone https://e.coding.net/dyfluid/OpenFOAM/OpenFOAM-9.git &&
                              git clone https://e.coding.net/dyfluid/OpenFOAM/ThirdParty-9.git &&
                              source OpenFOAM-9/etc/bashrc &&
                              cd OpenFOAM-9 &&
                              ./Allwmake -j &&
                              sed -i '$a source $HOME/OpenFOAM/OpenFOAM-9/etc/bashrc' $HOME/.bashrc
                              

                              CFD课程 改成线上了 http://dyfluid.com/class.html
                              CFD高性能服务器 http://dyfluid.com/servers.html

                              Y 1 Reply Last reply Reply Quote
                              • Y
                                YuPeng @李东岳 last edited by

                                @李东岳 李老师,好像是因为这个问题,抱歉之前没把报错都找出来
                                a43866f4-10f3-492d-9c02-4e876383e475-image.png

                                李东岳 1 Reply Last reply Reply Quote
                                • 李东岳
                                  李东岳 管理员 @YuPeng last edited by

                                  @yupeng gcc -v提示什么

                                  CFD课程 改成线上了 http://dyfluid.com/class.html
                                  CFD高性能服务器 http://dyfluid.com/servers.html

                                  Y 1 Reply Last reply Reply Quote
                                  • Y
                                    YuPeng @李东岳 last edited by

                                    @李东岳 6eb52543-2b62-41da-9bff-eb1812473c63-图片.png

                                    1 Reply Last reply Reply Quote
                                    • 李东岳
                                      李东岳 管理员 last edited by

                                      OpenFOAM-9/etc/bashrc第89行是这个么

                                      export WM_MPLIB=SYSTEMOPENMPI
                                      

                                      CFD课程 改成线上了 http://dyfluid.com/class.html
                                      CFD高性能服务器 http://dyfluid.com/servers.html

                                      Y 1 Reply Last reply Reply Quote
                                      • Y
                                        YuPeng @李东岳 last edited by

                                        @李东岳 李老师,抱歉回复您晚了,我检查了一下我的系统,由于之前配置matlab和一个专业软件的时候把配置弄得有点乱了,问题太多我把系统恢复到了我之前的版本然后装上了,麻烦您了

                                        1 Reply Last reply Reply Quote
                                        • First post
                                          Last post

                                        CFD中文网 | 东岳流体 | 京ICP备15017992号-2