|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: Feb 2018
Posts: 8
Rep Power: 2 ![]() |
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 |
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,209
Blog Entries: 39
Rep Power: 113 ![]() ![]() ![]() ![]() ![]() ![]() |
Quick questions:
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Join Date: Feb 2018
Posts: 8
Rep Power: 2 ![]() |
Hi,
Last edited by wyldckat; April 16, 2018 at 17:09. Reason: made the link clickable |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,209
Blog Entries: 39
Rep Power: 113 ![]() ![]() ![]() ![]() ![]() ![]() |
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 |
New Member
Join Date: Feb 2018
Posts: 8
Rep Power: 2 ![]() |
Hi,
|
|
![]() |
![]() |
![]() |
![]() |
#6 | |
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,209
Blog Entries: 39
Rep Power: 113 ![]() ![]() ![]() ![]() ![]() ![]() |
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 |
New Member
Join Date: Feb 2018
Posts: 8
Rep Power: 2 ![]() |
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 |
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,209
Blog Entries: 39
Rep Power: 113 ![]() ![]() ![]() ![]() ![]() ![]() |
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 |
New Member
Join Date: Feb 2018
Posts: 8
Rep Power: 2 ![]() |
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 | |
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,209
Blog Entries: 39
Rep Power: 113 ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
Code:
dpkg -s openfoam | grep Status |
||
![]() |
![]() |
![]() |
![]() |
#11 |
New Member
Join Date: Feb 2018
Posts: 8
Rep Power: 2 ![]() |
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 |
Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,209
Blog Entries: 39
Rep Power: 113 ![]() ![]() ![]() ![]() ![]() ![]() |
Quick answers:
|
|
![]() |
![]() |
![]() |
![]() |
#13 |
New Member
Join Date: Feb 2018
Posts: 8
Rep Power: 2 ![]() |
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 |
New Member
Rahul Vadrabade
Join Date: Apr 2018
Posts: 4
Rep Power: 2 ![]() |
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 |
New Member
Join Date: Feb 2018
Posts: 8
Rep Power: 2 ![]() |
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. |
|
![]() |
![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM 2.3.0 ubuntu 16.04 | FlyBob91 | OpenFOAM Installation | 5 | November 17, 2017 08:11 |
Problems building OF-1.7.x version, Ubuntu 16.04, Gcc-5.4.0 | wadekar | OpenFOAM Installation | 2 | February 22, 2017 12:11 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 15:24 |
OpenFoam v2.1.1 for Ubuntu 16.04 | ErickMontesdeOca | OpenFOAM Installation | 1 | July 20, 2016 15:53 |
Problems installing OpenFOAM 2.3.1 in Ubuntu 12.04 | masoudshao | OpenFOAM Installation | 3 | April 23, 2015 16:01 |