|
[Sponsors] |
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 7, 2015, 00:23 |
Problem installing swak_2.x for OpenFoam-2.4.0
|
#1 |
New Member
towanda
Join Date: Aug 2014
Posts: 20
Rep Power: 12 |
Hello
i have a problem that I did not manage to solve yet. I want to install swak_2.x for OpenFoam-2.4.0. I have also follow carefully the instructions to install the local bison 2.7 using /maintainanceScripts/compileRequirements.sh , and added to .bashrc the following: Code:
export PATH=/home/ludmila/OpenFOAM/ludmila-2.4.0/swak4foam/maintainanceScripts/privateRequirements/bin:$PATH Code:
Making dependency list for source file plugins/SampledSurfaceValuePluginFunction.C could not open file wordList.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file stringList.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file typeInfo.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file Pstream.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file prefixOSstream.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file Field.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file dimensionedType.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file IOobject.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file runTimeSelectionTables.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file vector.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file volFields.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file interpolationTable.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file string.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file dictionary.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file Tuple2.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file PtrMap.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file fvMesh.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file meshToMesh.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file NamedEnum.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file surfaceMesh.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file fvsPatchField.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file pointPatchField.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file primitivePatchInterpolation.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file sampledSurface.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file SubsetValueExpressionParser.tab.hh for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file coupledPolyPatch.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory could not open file processorPolyPatch.H for source file plugins/SampledSurfaceValuePluginFunction.C due to No such file or directory 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. make: *** [Make/linux64GccDPDebug/printSwakVersion.o] Error 1 Last edited by wyldckat; August 10, 2015 at 17:26. Reason: Added [CODE][/CODE] markers |
|
August 10, 2015, 17:32 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings towanda,
It seems that the problem is that the shell environment for OpenFOAM 2.4.0 is not loaded. I'm guessing that you followed the instructions available here: http://openfoamwiki.net/index.php/In...OpenFOAM-2.4.0 - and then you started a new terminal and then tried to build swak4Foam. If this is correct, then you need to run: Code:
of240 If you installed by following these instructions: http://www.openfoam.org/download/ubuntu.php - then you need to run: Code:
source /opt/openfoam240/etc/bashrc If the environment is loaded, which you can test by running: Code:
icoFoam -help Code:
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. Best regards, Bruno
__________________
|
|
September 4, 2015, 18:58 |
|
#3 |
New Member
towanda
Join Date: Aug 2014
Posts: 20
Rep Power: 12 |
Hi Bruno,
thank you for the reply and sorry about the delay. I had't seen the post before. I have install OF 2.4.0 on Ubuntu 14.04. I have download the swak4foam from : https://openfoamwiki.net/index.php/Contrib/swak4Foam (the version Swak4Foam_2.x) The OF functionality seems to work pretty fine. Then I have carefully followed the instructions to install swak4foam from the main web page of the library and when i run ./Allwmake I get the following: Code:
Previously compiled for OpenFOAM 2.4.0 /home/ludmila/OpenFOAM/ludmila-2.4.0/swak4Foam_2.x/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison) No file 'swakConfiguration'. Python etc won't work. See README for details Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems Checking swak4Foam-version and generating file abort: no repository found in '/home/ludmila/OpenFOAM/ludmila-2.4.0/swak4Foam_2.x' (.hg not found)! Swak version is 0.3.2 Bison is version 2.7.12-4996 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 2 Minor 4 Patch 0 (-1 == x / 0) No change to swak4FoamParsers/foamVersion4swak.H SOURCE=helpers/printSwakVersion.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O0 -fdefault-inline -ggdb3 -DFULLDEBUG -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPDebug -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/finiteVolume/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/sampling/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/fileFormats/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/triSurface/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/surfMesh/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/lagrangian/basic/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude -I/home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPDebug/printSwakVersion.o 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. make: *** [Make/linux64GccDPDebug/printSwakVersion.o] Error 1 Parser library did not compile OK. No sense continuing as everything else depends on it Requirements for Library not satisfied. I see no sense in going on Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard best regards Last edited by wyldckat; September 4, 2015 at 19:46. Reason: Added [CODE][/CODE] markers |
|
September 4, 2015, 19:51 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi towanda,
A few questions:
Bruno
__________________
|
|
September 5, 2015, 07:46 |
|
#5 |
New Member
towanda
Join Date: Aug 2014
Posts: 20
Rep Power: 12 |
Hello Bruno,
thank you for your reply. 1) I have follow these instructions http://www.openfoam.org/download/source.php 2) The command : ls -l $FOAM_SRC/OpenFOAM/lnInclude/Pstream.HGives this: ludmila@Ludmila:~$ ls -l $FOAM_SRC/OpenFOAM/lnInclude/Pstream.H ls: cannot access /home/ludmila/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude/Pstream.H: No such file or directory It seems I don't have the folder lnInclude. 3) The command which blockMeshGives: /home/ludmila/OpenFOAM/OpenFOAM-2.4.0/platforms/linux64GccDPDebug/bin/blockMesh I am able to run different OF solvers without any trouble. Thank you in advance. |
|
September 5, 2015, 08:16 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi towanda,
OK, that's odd... perhaps you ran wclean all after you finished the debug build? Anyway, run the following commands to restore the "lnInclude" folders: Code:
foam wmakeLnIncludeAll Best regards, Bruno
__________________
|
|
September 5, 2015, 22:03 |
|
#7 |
New Member
towanda
Join Date: Aug 2014
Posts: 20
Rep Power: 12 |
Swak Compiled ok and works. Thanks a lot for the help!!!
Best regards L |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Problem in installing OpenFOAM 2.3.0 !!! | omid20110 | OpenFOAM Installation | 6 | August 1, 2016 12:20 |
[swak4Foam] foam-extend-3.2 installing problem: swak4Foam failed to install due to Bison | lxwd | OpenFOAM Community Contributions | 1 | March 20, 2016 17:03 |
Problem with installing OpenFOAM 2.0.X | mohsen.boojari | OpenFOAM Installation | 3 | February 3, 2016 12:41 |
Problem installing OpenFOAM-1.6-ext on Ubuntu 14.04 | afrotimy | OpenFOAM Installation | 4 | October 4, 2014 12:36 |
Problem in installing OpenFOAM-ParaView-0.1.1-1.x86_64 | hassan5565 | OpenFOAM Installation | 1 | August 5, 2014 14:05 |