CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] Problem installing OpenFoam 2206 on WSL2 with Ubuntu 22.04 LTS

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 3, 2022, 00:04
Default Problem installing OpenFoam 2206 on WSL2 with Ubuntu 22.04 LTS
  #1
New Member
 
Amol
Join Date: Dec 2015
Posts: 5
Rep Power: 8
amolgole73 is on a distinguished road
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
amolgole73 is offline   Reply With Quote

Old   September 7, 2022, 09:09
Default
  #2
New Member
 
Join Date: Mar 2010
Posts: 11
Rep Power: 14
samaraseeri is on a distinguished road
Did you install GNU compiler it seems not installed. best
samaraseeri is offline   Reply With Quote

Old   September 7, 2022, 13:52
Default
  #3
New Member
 
Amol
Join Date: Dec 2015
Posts: 5
Rep Power: 8
amolgole73 is on a distinguished road
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?
amolgole73 is offline   Reply With Quote

Old   September 7, 2022, 15:25
Default
  #4
New Member
 
Join Date: Mar 2010
Posts: 11
Rep Power: 14
samaraseeri is on a distinguished road
Could you type down what steps you have followed to install openfoam?
samaraseeri is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.com] Installing OpenFOAM 2.4.0 on Ubuntu 20.04 for Windows RKyle OpenFOAM Installation 5 January 25, 2022 11:45
[OpenFOAM.com] Unable to install OpenFOAM v1906/v2012 in Ubuntu 20.04.2 LTS chandra shekhar pant OpenFOAM Installation 5 June 18, 2021 09:49
Prolem installing OpenFOAM Ver 2.3.0 source in Ubuntu 13.1.0 on VMware zandi OpenFOAM Installation 5 March 31, 2014 04:57
Installing OpenFOAM 1.6 on Ubuntu 10.4 sda OpenFOAM Installation 5 May 27, 2010 21:19
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25


All times are GMT -4. The time now is 17:06.