CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 7, 2015, 00:23
Default Problem installing swak_2.x for OpenFoam-2.4.0
  #1
New Member
 
towanda
Join Date: Aug 2014
Posts: 20
Rep Power: 12
towanda is on a distinguished road
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
The output when I run ./Allwmake is:

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
any help will be greatly appreciated

Last edited by wyldckat; August 10, 2015 at 17:26. Reason: Added [CODE][/CODE] markers
towanda is offline   Reply With Quote

Old   August 10, 2015, 17:32
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
for loading the shell environment for OpenFOAM 2.4.0.

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 it's neither one of these instructions, then I can't guess much more from here... you will have to tell us which instructions you followed


If the environment is loaded, which you can test by running:
Code:
icoFoam -help
then try again to build swak4Foam. If the same error still occurs, namely:
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.
then that means that something very wrong happened with your installation of OpenFOAM. More details are needed in such a situation, namely what Linux Distribution you are using and what instructions you followed.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 4, 2015, 18:58
Default
  #3
New Member
 
towanda
Join Date: Aug 2014
Posts: 20
Rep Power: 12
towanda is on a distinguished road
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
Any help will be very valuable for me. Thank you in advance

best regards

Last edited by wyldckat; September 4, 2015 at 19:46. Reason: Added [CODE][/CODE] markers
towanda is offline   Reply With Quote

Old   September 4, 2015, 19:51
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi towanda,

A few questions:
  1. What installation instructions did you follow for installing OpenFOAM 2.4.0?
  2. What does the following command give you?
    Code:
    ls -l $FOAM_SRC/OpenFOAM/lnInclude/Pstream.H
  3. Are you able to run blockMesh or icoFoam?
  4. What does the following command give you?
    Code:
    which blockMesh
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   September 5, 2015, 07:46
Default
  #5
New Member
 
towanda
Join Date: Aug 2014
Posts: 20
Rep Power: 12
towanda is on a distinguished road
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.
towanda is offline   Reply With Quote

Old   September 5, 2015, 08:16
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Then try building swak4Foam once again.

Best regards,
Bruno
chengyu likes this.
__________________
wyldckat is offline   Reply With Quote

Old   September 5, 2015, 22:03
Default
  #7
New Member
 
towanda
Join Date: Aug 2014
Posts: 20
Rep Power: 12
towanda is on a distinguished road
Swak Compiled ok and works. Thanks a lot for the help!!!

Best regards

L
towanda is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 15:11.