|
[Sponsors] |
[OpenFOAM.org] Installing OpenFOAM-2.4.0-MNF on Ubuntu 18.0.4 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 4, 2022, 10:54 |
Installing OpenFOAM-2.4.0-MNF on Ubuntu 18.0.4
|
#1 |
New Member
Justin
Join Date: Mar 2022
Posts: 6
Rep Power: 4 |
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 Code:
echo -e ${LD_LIBRARY_PATH//:/\\n} && echo "" && echo "$FOAM_LIBBIN" Code:
find $FOAM_LIBBIN -iname "*finitevolume*" Thanks. |
|
July 6, 2022, 05:33 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
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 |
|
July 6, 2022, 07:31 |
|
#3 |
New Member
Justin
Join Date: Mar 2022
Posts: 6
Rep Power: 4 |
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. |
|
July 6, 2022, 10:08 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
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. |
||
March 4, 2023, 00:40 |
|
#5 | |
Member
Shah Akib Sarwar
Join Date: Mar 2021
Posts: 41
Rep Power: 5 |
Quote:
|
||
Tags |
build error, installation |
|
|
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 |