![]() |
Problem installing swak_2.x for OpenFoam-2.4.0
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 |
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: Best regards, Bruno |
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 best regards |
Hi towanda,
A few questions:
Bruno |
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. |
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 Best regards, Bruno |
Swak Compiled ok and works. Thanks a lot for the help!!!
Best regards L |
All times are GMT -4. The time now is 22:07. |