Basic Error when installing swak4foam with foam extend 3.0
Hi,
I'm using Ubuntu 13.10 and I've installed foam extend 3.0, using the deb binary packages available in http://wikki.gridcore.se/foam-extend/download. Then I've tried to download and install swak4foam using the instructions provided in Installation/swak4Foam/Installing On/Ubuntu. I'm getting a very strange basic error, related to some missing files: #################### .... In file included from helpers/printSwakVersion.C:43:0: helpers/printSwakVersion.H:46:21: fatal error: Pstream.H: No such file or directory #include "Pstream.H" ^ compilation terminated. In file included from helpers/switchableNotImplemented.C:43:0: helpers/switchableNotImplemented.H:47:19: fatal error: error.H: No such file or directory #include "error.H" ^ compilation terminated. In file included from helpers/DebugOStream.C:37:0: helpers/DebugOStream.H:55:21: fatal error: Pstream.H: No such file or directory #include "Pstream.H" .... ######################## I've read the all the posts I found about swak4foam installation, and in the Installation/swak4Foam/Understanding Error Messages indicates that OpenFOAM seems to be improperly installed. I followed the recommendation of reading Installation/Working with the Shell, and made all the recommend tests, and all environment variables seem to be OK. Notice that I'm getting the same error in two different computers. One has several OpenFOAM versions and another has just Foam extend 3.0. Additionally, using the find command I found the missing file (or at least one with the same name) in folder: /opt/foam/foam-extend-3.0/src/foam/db/IOstreams/Pstreams. But the compiler cannot figure out this location. Sorry to bother you with this issue, because I believe I'm making a basic mistake. But I cannot figure out which is.... Can you please help me? Cheers, Miguel |
Greetings Miguel,
Sorry for taking a while to reply to you, but I knew this would take some time to download and install the deb package and to check the solution myself. This issue apparently was reported back in January: https://sourceforge.net/apps/mantisb...iew.php?id=200 - and it hasn't been fixed yet :( To solve the problem, run the following commands:
...and I'm going to have to add this issue to the "known issues" list :) Best regards, Bruno |
1 Attachment(s)
Hi Bruno,
You don't have to be sorry. I'm very grateful for your help and support. Thanks for your clues they solved most of the problems. However there are a few errors that subsist, that are similar to these one: linux64GccDPOpt/replayTransientBC /usr/bin/ld: cannot find -liberty collect2: error: ld returned 1 exit status make[1]: *** [/home/mnobrega/foam/mnobrega-3.0/applications/bin/linux64GccDPOpt/funkySetBoundaryField] Error 1 make: *** [funkySetBoundaryField] Error 2 I'm sending in attachment the full make.log file, in case this info is not enough. Are you able to figure out the solution for this problem? Cheers, Miguel |
Hi Bruno,
Just an additional info. I tested the procedure you suggested in the computer I have a few versions of OpenFOAM installed and I managed to compile swak4foam. The difficulty I reported previously occurred in the computer I have just foam extend 3.0. That computer is a very clean installation. Apart from a few system tools, that I've installed after Ubuntu 13.10 installation, it has only foam extend 3.0. I hope this info helps to identify the issue. Cheers, Miguel |
Hi Miguel,
If my memory doesn't fail me, the issue of the missing "-liberty" is just a matter of running: Code:
sudo apt-get install binutils-dev Bruno |
Quote:
|
Hi Bruno,
Thanks for your patience and time...I'm really grateful... swak4foam is working in both computers.... All the best, Miguel |
All times are GMT -4. The time now is 16:11. |