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] How to build OpenFOAM-2.4.0 in Ubuntu 20.4? (https://www.cfd-online.com/Forums/openfoam-installation/237828-how-build-openfoam-2-4-0-ubuntu-20-4-a.html)

wangchengan2003 August 7, 2021 03:16

How to build OpenFOAM-2.4.0 in Ubuntu 20.4?
 
1 Attachment(s)
Dear friends,


I want to build OpenFOAM-2.4.0 in Ubuntu 20.4.

I have switched the older versions of gcc-4.7/g++-4.7, or gcc-4.8/g++-4.8 or gcc-5.0/g++-5.0 in stead of the gcc-9/g++-9. Then follow the steps in https://openfoam.org/download/2-4-0-source/, such as :



1. Install dependent packages;
2. Set environment variables,
Code:

source $HOME/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc
;
3. ./Allwmake > log.make 2>&1


Finally I failed. I put the log file in attachment. I wish to get some help.


Best regards,


Chengan


All times are GMT -4. The time now is 11:09.