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.com] Problem installing OpenFoam 2206 on WSL2 with Ubuntu 22.04 LTS (https://www.cfd-online.com/Forums/openfoam-installation/244889-problem-installing-openfoam-2206-wsl2-ubuntu-22-04-lts.html)

amolgole73 September 2, 2022 23:04

Problem installing OpenFoam 2206 on WSL2 with Ubuntu 22.04 LTS
 
Hello all,

I am new to OpenFoam. I am facing problems while compiling OpenFoam from source. Details are as below,

OpenFoam : 2206
WSL 2
Ubuntu : 22.04 LTS

FoamInstallationTest result:

Code:

Executing foamInstallationTest

Basic setup :
-------------------------------------------------------------------------------
OpenFOAM:            OpenFOAM-v2206
ThirdParty:          ThirdParty-v2206
Shell:              bash
Host:                LAPTOP-1DPHTA5H
OS:                  Linux version 5.10.16.3-microsoft-standard-WSL2
-------------------------------------------------------------------------------

Main OpenFOAM env variables :
-------------------------------------------------------------------------------
Environment          FileOrDirectory                          Valid      Crit
-------------------------------------------------------------------------------
$WM_PROJECT_USER_DIR  /home/nikhil/OpenFOAM/nikhil-v2206        yes      no
$WM_THIRD_PARTY_DIR  ...penFOAM/nikhil-v2206/ThirdParty-v2206  yes      maybe
$WM_PROJECT_SITE      [env variable unset]                                no
-------------------------------------------------------------------------------

OpenFOAM env variables in PATH :
-------------------------------------------------------------------------------
Environment          FileOrDirectory                          Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR      .../OpenFOAM/nikhil-v2206/OpenFOAM-v2206  yes  yes  yes

$FOAM_APPBIN          ...06/platforms/linux64GccDPInt32Opt/bin  yes  yes  yes
$FOAM_SITE_APPBIN    ...06/platforms/linux64GccDPInt32Opt/bin  no        no
$FOAM_USER_APPBIN    ...06/platforms/linux64GccDPInt32Opt/bin  no        no
$WM_DIR              ...OAM/nikhil-v2206/OpenFOAM-v2206/wmake  yes  yes  often
-------------------------------------------------------------------------------

OpenFOAM env variables in LD_LIBRARY_PATH :
-------------------------------------------------------------------------------
Environment          FileOrDirectory                          Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN          ...06/platforms/linux64GccDPInt32Opt/lib  yes  yes  yes
$FOAM_SITE_LIBBIN    ...06/platforms/linux64GccDPInt32Opt/lib  no        no
$FOAM_USER_LIBBIN    ...06/platforms/linux64GccDPInt32Opt/lib  no        no
$FOAM_EXT_LIBBIN      ...v2206/platforms/linux64GccDPInt32/lib  yes  yes  maybe
$MPI_ARCH_PATH        /usr/lib/x86_64-linux-gnu/openmpi        yes  yes  yes
-------------------------------------------------------------------------------

Software Components
-------------------------------------------------------------------------------
Software    Version    Location
-------------------------------------------------------------------------------
flex      *** not installed ***

make      *** not installed ***

wmake    *** not installed ***

gcc      *** not installed ***
          CRITICAL ERROR

g++      *** not installed ***

-------------------------------------------------------------------------------
icoFoam  *** not installed ***
          CRITICAL ERROR


Summary
-------------------------------------------------------------------------------
Base configuration ok.
The foam installation contains 2 critical error(s).

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

Done

Please let me know, what I am doing wrong.

Can provide log file if needed.

Thanks

samaraseeri September 7, 2022 08:09

Did you install GNU compiler it seems not installed. best

amolgole73 September 7, 2022 12:52

I think I have, I checked this with,

Code:

xxxxx@xxxxxxxxxxx:~$ gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

xxxxx@xxxxxxxxxxx:~$ g++ --version
g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

What could be the issue?

samaraseeri September 7, 2022 14:25

Could you type down what steps you have followed to install openfoam?


All times are GMT -4. The time now is 03:58.