|
[Sponsors] |
[OpenFOAM.com] Unable to install OpenFOAM v1906/v2012 in Ubuntu 20.04.2 LTS |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 13, 2021, 06:23 |
Unable to install OpenFOAM v1906/v2012 in Ubuntu 20.04.2 LTS
|
#1 |
Senior Member
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17 |
Hello All,
For the last 1.5 years I have using OpenFOAM v1906, but suddenly 2-3 days back, when I tried to run some tutorial case, it was giving me error regarding the missing controlDict, I tried to search that error and found that some files have been deleted by me accidentally. So I tried to install the OpenFOAM v2012 in my machine, but it was giving me error which says: Code:
ld: /home/csp/OpenFOAM/OpenFOAM-v2012/platforms/linux64GccDPInt32Opt/lib/libOSspecific.o wmake dummy (mpi=SYSTEMOPENMPI) wmake dummy ln: ./lnInclude dep: UOPwrite.C dep: UIPread.C dep: UPstream.C Ctoo: UPstream.C Ctoo: UIPread.C Ctoo: UOPwrite.C ld: /home/csp/OpenFOAM/OpenFOAM-v2012/platforms/linux64GccDPInt32Opt/lib/dummy/libPstream.so wmake mpi (mpi=SYSTEMOPENMPI:sys-openmpi) wmake mpi ln: ./lnInclude dep: PstreamGlobals.C dep: UPstream.C dep: UIPread.C dep: UOPwrite.C Ctoo: UOPwrite.C Ctoo: UIPread.C Ctoo: UPstream.C Ctoo: PstreamGlobals.C ld: /home/csp/OpenFOAM/OpenFOAM-v2012/platforms/linux64GccDPInt32Opt/lib/sys-openmpi/libPstream.so /usr/bin/ld: cannot find -lmpi collect2: error: ld returned 1 exit status make: *** [/home/csp/OpenFOAM/OpenFOAM-v2012/wmake/makefiles/general:184: /home/csp/OpenFOAM/OpenFOAM-v2012/platforms/linux64GccDPInt32Opt/lib/sys-openmpi/libPstream.so] Error 1 Done logging to 'log.linux64GccDPInt32Opt' |
|
June 17, 2021, 15:49 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Can't remember the exact detail (you'll need to search the forum) but there was a weird issue with the mpi dev package on Ubuntu that oddly didn't show on fresh docker installs. Uninstall mpi (while allowing dependent packages to be broken) and then reinstall. Seemed to be something funny with the mpi post-install triggers not being properly triggered.
I know this sounds really dodgy, but that's what I remember. Might also have been on the develop.openfoam.com issue tracker about a year back. |
|
June 18, 2021, 03:05 |
|
#3 |
Senior Member
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17 |
Hi Mark Olesen, Many thanks for your help and reply. You are absolutely correct about the MPI issues, what I have done now:
1. Updated Ubuntu to the latest version 2. Earlier I was not using "Third Party" folder, now I am using this also. Doing these two I am able to install the OpenFOAM v1906. But don't know what is the real issue. I have done the things more brutally and mechanically. If some thing don't work for me, I usually do "on" - "off" |
|
June 18, 2021, 09:33 |
|
#4 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
It should still work properly without needing any ThirdParty. I dug a little and found the reference I was looking for (yes, just as weird as I remembered): https://develop.openfoam.com/Develop...817#note_49023 Unless you are developing with OpenFOAM (as opposed to actually developing on the OpenFOAM code itself), you are probably just fine to use the binary packs: https://develop.openfoam.com/Develop...ompiled/debian EDIT: added note as "known problem" on the wiki page |
||
June 18, 2021, 09:39 |
|
#5 |
Senior Member
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 17 |
Hello again Mark Olesen for your kind help. Sincerely speaking I have completely no idea about the pre-compiled version of OpenFOAM, I generally install using the source code of OpenFOAM, not sure if both are same or different. Is it more convenient to use OpenFOAM through pre-compiled version ?
|
|
June 18, 2021, 09:49 |
|
#6 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
The short answer: "yes" it is more convenient to install/use with precompiled versions. The source code is identical, with the precompiled version you also get the shell session launcher, the openfoam-selector (for managing different versions) etc. If you measure convenience in terms of "time to installation", then you should be pleasantly surprised how quickly you can install a version. BTW: you can also install multiple versions (openfoam1912, openfoam2006, openfoam2012) without conflicts. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Install OpenFOAM 6 on Ubuntu 16.04 without root access | DoQuocVu | OpenFOAM Installation | 1 | December 27, 2019 17:27 |
[OpenFOAM.org] OpenFoam 2.2.0 On Centos 7, unable to install | nvnkush | OpenFOAM Installation | 3 | July 4, 2019 14:31 |
I cant find openfoam for ubuntu 14.04 LTS | seju | OpenFOAM Installation | 15 | August 30, 2014 13:07 |
Prolem installing OpenFOAM Ver 2.3.0 source in Ubuntu 13.1.0 on VMware | zandi | OpenFOAM Installation | 5 | March 31, 2014 04:57 |
[Commercial meshers] ST_Malloc: out of memory.malloc_storage: unable to malloc Velocity SA, | cfdproject | OpenFOAM Meshing & Mesh Conversion | 0 | April 14, 2009 16:45 |