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

[OpenFOAM.org] Installing OpenFOAM-2.4.0-MNF on Ubuntu 18.0.4

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By olesen

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2022, 10:54
Default Installing OpenFOAM-2.4.0-MNF on Ubuntu 18.0.4
  #1
New Member
 
Justin
Join Date: Mar 2022
Posts: 6
Rep Power: 4
mr35diamonds is on a distinguished road
Hi all,

I have been trying to compile OpenFOAM-2.4.0 (which is required for the MNF module) on Ubuntu 18.0.4 using the installation instructions provided here: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04

I am able to successfully compile the $WM_THIRD_PARTY_DIR but strange errors appear in the ./Allwmake within the main project directory (same thing for OpenFOAM-2.4.0-MNF). The logfile is quite long and exceeds the file size here but the first errors that appear are
Code:
/bin/ld: cannot find -lfiniteVolume
/bin/ld: cannot find -lsampling
/bin/ld: cannot find -lcompressibleTurbulenceModel
/bin/ld: cannot find -lcompressibleRASModels
/bin/ld: cannot find -lcompressibleLESModels
/bin/ld: cannot find -llagrangianIntermediate
/bin/ld: cannot find -llagrangianTurbulence
/bin/ld: cannot find -llagrangianSpray
/bin/ld: cannot find -lspecie
/bin/ld: cannot find -lfluidThermophysicalModels
/bin/ld: cannot find -lreactionThermophysicalModels
/bin/ld: cannot find -lSLGThermo
/bin/ld: cannot find -lchemistryModel
/bin/ld: cannot find -lradiationModels
/bin/ld: cannot find -lengine
/bin/ld: cannot find -lregionModels
/bin/ld: cannot find -lsurfaceFilmModels
/bin/ld: cannot find -lfvOptions
/bin/ld: cannot find -lcombustionModels
/bin/ld: cannot find -lfiniteVolume
/bin/ld: cannot find -lcompressibleTurbulenceModel
/bin/ld: cannot find -lcompressibleRASModels
/bin/ld: cannot find -lcompressibleLESModels
/bin/ld: cannot find -llagrangianIntermediate
/bin/ld: cannot find -llagrangianTurbulence
/bin/ld: cannot find -lspecie
/bin/ld: cannot find -lfluidThermophysicalModels
/bin/ld: cannot find -lreactionThermophysicalModels
/bin/ld: cannot find -lSLGThermo
/bin/ld: cannot find -lchemistryModel
/bin/ld: cannot find -lradiationModels
/bin/ld: cannot find -lregionModels
/bin/ld: cannot find -lsurfaceFilmModels
/bin/ld: cannot find -lcombustionModels
/bin/ld: cannot find -lfvOptions
/bin/ld:collect2: error: ld returned 1 exit status
 cannot find -lsampling
The paths for $FOAM_LIBBIN are set correctly by checking
Code:
echo -e ${LD_LIBRARY_PATH//:/\\n} && echo "" && echo "$FOAM_LIBBIN"
and I tried to find the files there:
Code:
find $FOAM_LIBBIN -iname "*finitevolume*"
and these .so files do not appear upon initial wmake, so the libraries are not built. I wonder if anyone has been able to compile OF-2.4.0 on Ubuntu 18.0.4, and whether they've encountered such errors as well. Any help is appreciated.

Thanks.
mr35diamonds is offline   Reply With Quote

Old   July 6, 2022, 05:33
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
A few things: after you download the OpenFOAM source packs, you also need to set the environment and compile it too. OpenFOAM-2.4.0 is really quite old (2015). I would be partly surprised if you manage to get it compiled at all, since there will most certainly be things that new compilers pick up on a errors that older compilers didn't notice.


If you want to save the hassle of compilation, you can consider using one of the binary packs (with a new OpenFOAM version).


https://develop.openfoam.com/Develop...ompiled/debian
mr35diamonds likes this.
olesen is offline   Reply With Quote

Old   July 6, 2022, 07:31
Default
  #3
New Member
 
Justin
Join Date: Mar 2022
Posts: 6
Rep Power: 4
mr35diamonds is on a distinguished road
Hi Mark Olesen,

Thank you for your reply and help.

The only reason I wanted to compile OF-2.4.0 was because I thought the MNF (Micro-nano-flows) module was only supported in that version. I have compiled a few recent OFs (non-root), but never able to build the older ones. Nonetheless, I found out just yesterday that the MNF module is supported in the ESI v1706, so have been able to build that.
mr35diamonds is offline   Reply With Quote

Old   July 6, 2022, 10:08
Default
  #4
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by mr35diamonds View Post
Hi Mark Olesen,

Thank you for your reply and help.

The only reason I wanted to compile OF-2.4.0 was because I thought the MNF (Micro-nano-flows) module was only supported in that version. I have compiled a few recent OFs (non-root), but never able to build the older ones. Nonetheless, I found out just yesterday that the MNF module is supported in the ESI v1706, so have been able to build that.

If it works with 1706, there are good chances that you won't have much problem with later versions either. OpenFOAM-v1912 is currently the oldest precompiled version available. If that works, you can try moving forward with newer and newer (precompiled) versions until you hit an issue. This is certainly much, much faster than compiling OpenFOAM from source each time and will make sure you don't get locked into an old version. Even OpenFOAM-v1706 is already 5 years old.
olesen is offline   Reply With Quote

Old   March 4, 2023, 00:40
Default
  #5
Member
 
Shah Akib Sarwar
Join Date: Mar 2021
Posts: 41
Rep Power: 5
Shah Akib Sarwar is on a distinguished road
Quote:
Originally Posted by mr35diamonds View Post
Hi Mark Olesen,

Thank you for your reply and help.

The only reason I wanted to compile OF-2.4.0 was because I thought the MNF (Micro-nano-flows) module was only supported in that version. I have compiled a few recent OFs (non-root), but never able to build the older ones. Nonetheless, I found out just yesterday that the MNF module is supported in the ESI v1706, so have been able to build that.
Could you please elaborate a little on how to use the MNF module with v1706? I am hoping to do the same with the group's rarefiedmultiphaseFoam solver.
Shah Akib Sarwar is offline   Reply With Quote

Reply

Tags
build error, installation


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 v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
[OpenFOAM.org] Problems installing OpenFOAM 2.3.0 on Ubuntu 12.04 arieljeds OpenFOAM Installation 6 August 19, 2015 08:39
[OpenFOAM.org] Installing OpenFOAM 2.3.0 on Ubuntu 14.10 sisi OpenFOAM Installation 4 November 26, 2014 06:24
Prolem installing OpenFOAM Ver 2.3.0 source in Ubuntu 13.1.0 on VMware zandi OpenFOAM Installation 5 March 31, 2014 04:57


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