swak4foam
i am a beginner in linux and i have installed linux-ubuntu 13.04 with openfoam 2.3 (newest version). i wonna install swak4foam but i don't know which version of swak4foam is compatible with this configuration, i don't know where i can download it.
Could you please help me? Thank you. |
Quote:
|
I used this to download swak4foam:
Code:
svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/libraries/swak4Foam/ swak4Foam_2.x Code:
wmake all Code:
icoFoam |
Greetings to all!
@kingjewel1: Quote:
Which Linux distribution are you using? Best regards, Bruno |
Quote:
|
Quote:
The problem is that the system's Bison version is 2.3 and swak4Foam is asking for at least 2.4. Since Bison is only needed for the build process, I suggest that you do the following steps:
|
Quote:
http://sourceforge.net/apps/mantisbt...iew.php?id=211 |
EDIT: I've installed the FLEX thing and swak is installing... I'll update soon :)
Quote:
Code:
[cenmk@login2 swak4Foam_2.x]$ ./Allwmake |
Code:
mkdir: `': No such file or directory |
Quote:
Quote:
Quote:
Usually the real problem is further upwards. Look for the first occurrence of an error message, not the last one. You can send the output from Allwmake into a file, by running it like this: Code:
./Allwmake > make.log 2>&1 |
Quote:
Code:
[cenmk@login2 swak4Foam_2.x]$ tail -f make.log |
swak4foam
1 Attachment(s)
Quote:
any help is appreciated. |
@kingjewel1:
Quote:
Code:
export PATH=$PWD/bison/bin:$PATH |
Quote:
Code:
[cenmk@login2 swak4Foam_2.x]$ bison -V Code:
Previously compiled for OpenFOAM 2.1.1 |
@kingjewel1:
There are two very important details that seem to be missing:
|
Quote:
That gives no reply: Code:
[cenmk@login2 ~]$ echo $FOAM_USER_LIBBIN |
Quote:
OK, if the following 2 commands gives you any valid output: Code:
echo $WM_PROJECT_DIR Code:
mkdir $HOME/.OpenFOAM When Allwmake is finished and if everything went well, then next time you start a new terminal, it will activate the necessary environment variables, which OpenFOAM's environment scripts should pick up automatically. If it does not do it automatically, then run: Code:
source $HOME/.OpenFOAM/prefs.sh |
I believe the users of this cluster are able to write and use their own solvers. There must be something wrong with my bash file:
Code:
# .bashrc Code:
[cenmk@login2 swak4Foam_2.x]$ module list The first commands of your last post went OK. (added a " ' ") to one of the exports Then Allwmake gives: Code:
[cenmk@login2 swak4Foam_2.x]$ ./Allwmake |
Sorry, I was a bit of in a hurry and didn't notice the 2 typos:
Code:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$FOAM_USER_LIBBIN Then you'll have to start a new terminal, because the other one is now contaminated :( And I didn't know you were using modules. This would explain why it's not working as expected, because these modules are usually created manually. If you prefer, you can move the contents of the file "$HOME/.OpenFOAM/prefs.sh" directly into your ".bashrc" file. |
Quote:
Code:
SOURCE=FieldValueExpressionParser.yy ; rm -f Make/linux64GccDPOpt/FieldValueExpressionParser.C Make/linux64GccDPOpt/FieldValueExpressionParser.tab.hh; mkdir $$; cd $$; bison -ra -v -d ../$SOURCE ; mv *.tab.cc ../Make/linux64GccDPOpt/FieldValueExpressionParser.C ; sed -i.bak "s/position.hh/FieldValueExpressionParser_position.hh/" location.hh ; mv location.hh ../lnInclude/FieldValueExpressionParser_location.hh ; mv stack.hh ../lnInclude/FieldValueExpressionParser_stack.hh ; mv position.hh ../lnInclude/FieldValueExpressionParser_position.hh ; sed -i.bak "s/stack.hh/FieldValueExpressionParser_stack.hh/;s/location.hh/FieldValueExpressionParser_location.hh/" FieldValueExpressionParser.tab.hh ;mv *.hh ../lnInclude ; touch -r ../$SOURCE ../lnInclude/FieldValueExpressionParser*.hh ; cd ..; rm -r $$; if [ -z "" ]; then echo -e "\n\nIf compilation of the grammers takes prohibitivly long set SWAK_COMPILE_GRAMMAR_OPTION to something like -O1\n\n" ; fi; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt -I/opt/openfoam230/src/finiteVolume/lnInclude -I/opt/openfoam230/src/sampling/lnInclude -I/opt/openfoam230/src/fileFormats/lnInclude -I/opt/openfoam230/src/triSurface/lnInclude -I/opt/openfoam230/src/surfMesh/lnInclude -I/opt/openfoam230/src/lagrangian/basic/lnInclude -I/opt/openfoam230/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam230/src/OpenFOAM/lnInclude -I/opt/openfoam230/src/OSspecific/POSIX/lnInclude -fPIC -c Make/linux64GccDPOpt/FieldValueExpressionParser.C -o Make/linux64GccDPOpt/FieldValueExpressionParser.o Anyway: this problem is known, there is a fix and a hint to the solution is given in the output. What annoys me now is how people seem to not read that hint. So a question like "I'm new with Linux. What does 'set xxx to yyy' mean" is a valid question and I might gladly answer that with something like "Do on the command-line 'export SWAK_COMPILE_GRAMMAR_OPTION=-O1' and then compile (you'll know that you correctly set the variable when the 'If compilation ...' output is not there)" or a question like "I tried SWAK_COMPILE_GRAMMAR_OPTION=-O1, it doesn't help" might trigger a "Strange. Which compiler-version?" but a Word-file with the problem (and the probable solution) copy/pasted makes me only look to the sky and say "why do I even bother?" (the answer is: because silently I hope that it is only every fifth user that doesn't read the output before asking) |
All times are GMT -4. The time now is 18:16. |