|
[Sponsors] |
[OpenFOAM.org] Problems with Compiling OpenFOAM-2.1.1 in Ubuntu 16.04 |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 ![]() |
Hey all,
I am recently new to OpenFOAM, started using it about a month ago. I recently tried to compile OpenFOAM-2.1.1 in my Ubuntu 16.04 and it keeps coming up with the first error; /home/okorie/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libreactionThermophysicalModels.so: undefined reference to `Foam::Reaction<Foam::constTransport<Foam::specieT hermo<Foam::hConstThermo<Foam: ![]() collect2: error: ld returned 1 exit status I have attached my log file I have looked online but all I get is the suggestion of cleaning and compiling all over again but that has not worked. Any help will be appreciated. Thanks. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quick questions:
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 ![]() |
Hi,
Last edited by wyldckat; April 16, 2018 at 17:09. Reason: made the link clickable |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
More quick questions:
I will have to test this later today at home in my Ubuntu 16.04 installation, to try and reproduce the same error message. |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 ![]() |
Hi,
|
|
![]() |
![]() |
![]() |
![]() |
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
My concern here is how exactly you are keeping each version separated from each other. For example, do you use aliases for loading each individual version; do you only activate one version per terminal or do you load directly between versions in the same terminal? |
||
![]() |
![]() |
![]() |
![]() |
#7 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 ![]() |
Hi,
Thanks for the reply. I use aliases to load the individual version. I also activate one version for each terminal. I don't know if the instructions on the website could be the problem |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Hi charles4allme,
So, from what I can figure out from your descriptions, everything should have worked properly and as intended. I've finished re-testing the instructions on my machine and I did not get the same error message that you've gotten. Mmm... I would like to ask the following, to try and cross-out an hypothesis: Have you installed the package "openfoam" that is provided for Ubuntu via apt? I ask this because that will make a global installation, without the need to use the source command, if I'm not mistaken. The problem is that such an installation would interfere with any other custom builds that you would do... It could have been something that you could have accidentally done recently, while trying to install the packages "openfoam5" or "openfoam4" or something like that. But assuming that's not the problem, please try the following steps:
Bruno |
|
![]() |
![]() |
![]() |
![]() |
#9 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 ![]() |
Hi,
Thank you for the instructions. I don't think I have installed openfoam package through 'apt'. Is there anyway to check to be certain so I can fully rule that out as a potential problem. I have also gone ahead to edit my file Make/options and I added those other libraries. I now get this new error. Code:
linux64GccDPOpt/options:71: *** missing separator. Stop. wmake error: file 'Make/linux64GccDPOpt/objectFiles' could not be created in /home/okorie/OpenFOAM/OpenFOAM-2.1.1/applications/utilities/postProcessing/wall/wallHeatFlux charles4allme |
|
![]() |
![]() |
![]() |
![]() |
#10 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
Code:
dpkg -s openfoam | grep Status |
||
![]() |
![]() |
![]() |
![]() |
#11 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 ![]() |
I tried running the code you sent and I get this output
Code:
dpkg-query: package 'openfoam' is not installed and no information is available Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. |
|
![]() |
![]() |
![]() |
![]() |
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quick answers:
|
|
![]() |
![]() |
![]() |
![]() |
#13 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 ![]() |
Hello,
Apologies for the late reply. I have corrected the mistake and I still get the same error Code:
/home/okorie/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libreactionThermophysicalModels.so: undefined reference to `Foam::Reaction<Foam::constTransport<Foam::specieThermo<Foam::hConstThermo<Foam::perfectGas> > > >::typeName' collect2: error: ld returned 1 exit status /home/okorie/OpenFOAM/OpenFOAM-2.1.1/wmake/Makefile:149: recipe for target '/home/okorie/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/wallHeatFlux' failed make: *** [/home/okorie/OpenFOAM/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/wallHeatFlux] Error 1 |
|
![]() |
![]() |
![]() |
![]() |
#14 |
Member
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 8 ![]() |
Latest version is 5.x available why are you using older version?
Follow Steps : open terminal : (enter one by one) sudo add-apt-repository http://dl.openfoam.org/ubuntu sudo sh -c "wget -O - http://dl.openfoam.org/gpg.key | apt-key add -" sudo apt-get update apt-get install synaptic search for openfoam and install version 5 finalize installation with : gedit ~/.bashrc (at end of file : ) source /opt/openfoam5/etc/bashrc save and enjoy |
|
![]() |
![]() |
![]() |
![]() |
#15 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 ![]() |
Hi Rvadrabade,
I really appreciate the advice but am in a peculiar situation. I need the version 2.1.1 because am working with someone's solver that made use of applications and models from version 2.1.1 to generate their own model. I would go ahead and check if version 5.x has the available applications and models anyways. Thanks. |
|
![]() |
![]() |
![]() |
![]() |
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
@charles4allme: Sorry for the late reply, but I'm still confused as to why this error is happening and I haven't figured out how I can reproduce the same error...
Nonetheless, please run the following command: Code:
uname -a For example, I have gotten the following information in a virtual machine I'm testing right now for something else: Code:
Linux ofuser-virtual-machine 4.4.0-15-generic #31-Ubuntu SMP Fri Mar 18 19:06:37 UTC 2016 i686 athlon i686 GNU/Linux |
|
![]() |
![]() |
![]() |
![]() |
#17 |
Member
Join Date: Feb 2018
Posts: 91
Rep Power: 8 ![]() |
@wyldckat: Apologies for the late reply as I got busy with others and thank you for your reply and support. I ran the command and here is what it gave me
Code:
Linux maqsood-Precision-T7610 4.4.0-121-generic #145-Ubuntu SMP Fri Apr 13 13:47:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux |
|
![]() |
![]() |
![]() |
![]() |
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
It's been so long since the original report, that I'm lost on what could possibly be the error here.
My best guess is that there might have been a bug when unpacking the source code packages, which resulted in this problem. In other words, deleting the current 2.1.1 installation and starting over from downloading the "tar.gz" files once again and unpacking them and so on, is my best guess on solving this problem. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Problems installing OpenFOAM 2.3.1 in Ubuntu 12.04 | masoudshao | OpenFOAM Installation | 10 | August 9, 2018 06:13 |
[OpenFOAM.org] Building OpenFOAM 3.0.1 on Ubuntu 16.04 - failed | erico | OpenFOAM Installation | 30 | February 2, 2017 09:24 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 14:24 |
[OpenFOAM.org] 4.0: Problems compiling ParaView on Ubuntu 16.04 | RishabhG | OpenFOAM Installation | 1 | September 18, 2016 15:55 |
Compiling OpenFOAM 1.7.1 on Ubuntu 10.10 | samiam1000 | OpenFOAM Installation | 4 | November 24, 2010 08:00 |