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

[OpenFOAM.com] Install OpenFOAM 2112 in Ubuntu 22.04

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 5, 2022, 15:21
Default Install OpenFOAM 2112 in Ubuntu 22.04
  #1
New Member
 
Join Date: Mar 2022
Posts: 24
Rep Power: 4
tRock is on a distinguished road
Hello to all,

I would like to install OpenFOAM v2112 in debug mode in Ubuntu 22.04. The compiler used in Ubuntu 20.04 is GCC 9.4. In Ubuntu 22.04 the default is GCC 11.2.0.

This is giving me problems with the installation. I have installed GCC9 with:


Code:
sudo apt install gcc-9 g++-9
How can I specify the the GCC version I would like OF to be compiled with?


The error I am getting is:


Code:
primitives/functions/Math/erfInv.C: In function ‘Foam::scalar Foam::Math::erfInv(Foam::scalar)’:
primitives/functions/Math/erfInv.C:45:21: error: ‘numeric_limits’ is not a member of ‘std’
   45 |         return std::numeric_limits<scalar>::infinity();
      |                     ^~~~~~~~~~~~~~
primitives/functions/Math/erfInv.C:45:42: error: expected primary-expression before ‘>’ token
   45 |         return std::numeric_limits<scalar>::infinity();
      |                                          ^
primitives/functions/Math/erfInv.C:45:45: error: ‘::infinity’ has not been declared; did you mean ‘finite’?
   45 |         return std::numeric_limits<scalar>::infinity();
      |                                             ^~~~~~~~
      |                                             finite
make: *** [/home/tRock/OpenFOAM/OpenFOAM-v2112/wmake/rules/General/transform:35: /home/tRock/OpenFOAM/OpenFOAM-v2112/build/linux64GccDPInt32Debug/src/OpenFOAM/primitives/functions/Math/erfInv.o] Error 1



Best Regards
tRock is offline   Reply With Quote

 


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 10:45
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 14:24
How to install two version openfoam on ubuntu? MAHDI1366 OpenFOAM Installation 1 July 1, 2014 14:25
How to Install Openfoam 2.2.2 in Ubuntu 14.04? satty_00 OpenFOAM Installation 7 May 18, 2014 10:04


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