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 Installation error (https://www.cfd-online.com/Forums/openfoam-installation/176386-openfoam-2-3-0-installation-error.html)

suman91 August 17, 2016 07:33

OpenFOAM 2.3.0 Installation error
 
2 Attachment(s)
Hi,

I am trying to install OpenFOAM 2.3.0 on Ubuntu. Am getting error during the build. I have attached a snapshot of the error I am getting. My gcc version is 5.4.0. cmake version is 3.5.1.

I have also attached a second snap of the message I get when I do "foamInstallationTest".

Summary reads as follows:
Base configuration ok.
The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for troubleshooting.

Done

Please help me out.

wyldckat September 11, 2016 11:47

Quick answer: Sorry for the late reply. You need to run the following commands to fix the problem with Flex:
Code:

#Go into OpenFOAM's main source folder
cd $WM_PROJECT_DIR
 
#Change how the flex version is checked
find src applications -name "*.L" -type f | xargs sed -i -e 's=\(YY\_FLEX\_SUBMINOR\_VERSION\)=YY_FLEX_MINOR_VERSION < 6 \&\& \1='

Then try again running Allwmake.


If you were installing OpenFOAM 2.4.0, you could have followed the installation instructions that are given here: http://openfoamwiki.net/index.php/In...u#Ubuntu_16.04

suman91 September 20, 2016 06:20

Thanks a lot for the reply.


All times are GMT -4. The time now is 04:48.