CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] OpenFOAM 2.3.0 ubuntu 16.04 (https://www.cfd-online.com/Forums/openfoam-installation/180416-openfoam-2-3-0-ubuntu-16-04-a.html)

FlyBob91 November 22, 2016 11:38

OpenFOAM 2.3.0 ubuntu 16.04
 
Is it possible to install OpenFOAM 2.3.0 on ubuntu 16.04?

wyldckat November 29, 2016 15:45

Quick answer:
  • In theory: Yes.
  • In practice: Does it need to be 2.3.0? Can't it be 2.3.1 or 2.4.0?
edit: I could try it out myself, but you can also try this yourself. Follow the detailed instructions that were designed for 2.4.0 on Ubuntu 16.04: http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04 - but whenever it states 2.4.0, use 2.3.0.

shang May 12, 2017 18:21

Installation error of OpenFOAM 2.3.0 on Ubuntu 16.04
 
1 Attachment(s)
Hi Bruno,

As suggested, I followed the tutorials in your thread to install OF230 on Ubuntu 16.04. But it appeared error when I build ParaView with Python and MPI (ie, step 3). The error message is as below (attached also find log.makePV.failed.txt):

Code:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
MPI_EXTRA_LIBRARY (ADVANCED)
    linked by target "mpi4py.MPE" in directory /home/yeru/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py
    linked by target "mpi4py.MPI" in directory /home/yeru/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py
    linked by target "pmpi-mpe" in directory /home/yeru/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py
    linked by target "pmpi-vt" in directory /home/yeru/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py
    linked by target "pmpi-vt-mpi" in directory /home/yeru/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py
    linked by target "pmpi-vt-hyb" in directory /home/yeru/OpenFOAM/ThirdParty-2.3.0/ParaView-4.1.0/ThirdParty/mpi4py/vtkmpi4py

-- Configuring incomplete, errors occurred!
See also "/home/yeru/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/CMakeFiles/CMakeOutput.log".
See also "/home/yeru/OpenFOAM/ThirdParty-2.3.0/build/linux64Gcc/ParaView-4.1.0/CMakeFiles/CMakeError.log".
    Starting make
make: *** No targets specified and no makefile found. Stop.
Command exited with non-zero status 2
0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 2480maxresident)k
0inputs+0outputs (0major+142minor)pagefaults 0swaps
    Done make
    Installing ParaView to /home/yeru/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
make: *** No rule to make target 'install'. Stop.
    ---
    Installation complete for paraview-4.1.0
    Set environment variables:

        export ParaView_DIR=/home/yeru/OpenFOAM/ThirdParty-2.3.0/platforms/linux64Gcc/ParaView-4.1.0
        export PATH=$ParaView_DIR/bin:$PATH
        export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-4.1
    ---

Done

My computer's configurations are Dell Precision-T1600, Intel i7-3770, Quadro 600/PCIe/SSE2, Linux 4.4.0-77-generic (x86_64), Ubuntu 16.04.2 LTS, Unity.

Interestingly, when I tried to build without the flag of -mpi, the building process seemed proceed successfully. Do you know why -mpi flag caused the failure of build and whether the absence of -mpi can affect the performance of my installation?

Many thanks,
Yeru

wyldckat May 27, 2017 07:32

Quick answer @Yeru: If you followed the instructions from https://openfoamwiki.net/index.php/I...u#Ubuntu_16.04 - then the error message that you have gotten is because one of the fixes that use patch in 10.2 has failed.

Run the following command:
Code:

cd $WM_THIRD_PARTY_DIR/ParaView-4.1.0
Then check the contents of the files "Fix.patch" and "VTK/Fix2.patch" to see if they have legitimate source code changes or if it's HTML page stuff, like some error messages of some sort.

When running makeParaView4 without the "-mpi" option, that means that it has been built without MPI support. This is only needed if you are planning on using multi-core capabilities with ParaView itself.

roenby November 1, 2017 03:33

I have just installed OpenFOAM 2.2.0, 2.2.2, 2.3.1 and 3.0.1 on an Ubuntu 16.04 laptop. If I just follow the official instructions the OF installation fails with the first error being related to an "undefined reference to `yyFlexLexer::yywrap()'" when compiling PDRMesh. Following the instructions mentioned in this thread:

http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04

this problem was solved (I guess due to step 11?) for all the above OF versions. The paraview patches in step 10 only worked for 2.3.1 and 3.0.1 since 2.2.0 and 2.2.2 use an older paraview version.

Thanks a lot for sharing.

brokoli4 November 17, 2017 07:11

Successfull installation of OF231
 
Quote:

Originally Posted by roenby (Post 669951)
I have just installed OpenFOAM 2.2.0, 2.2.2, 2.3.1 and 3.0.1 on an Ubuntu 16.04 laptop. If I just follow the official instructions the OF installation fails with the first error being related to an "undefined reference to `yyFlexLexer::yywrap()'" when compiling PDRMesh. Following the instructions mentioned in this thread:

http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04

this problem was solved (I guess due to step 11?) for all the above OF versions. The paraview patches in step 10 only worked for 2.3.1 and 3.0.1 since 2.2.0 and 2.2.2 use an older paraview version.

Thanks a lot for sharing.


Thanks for sharing, too. Via this thread I managed to finally install OF231 following this
step by step instructions:

http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04

:)


All times are GMT -4. The time now is 15:46.