|
[Sponsors] |
[swak4Foam] difficulties installing swak4foam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 2, 2014, 15:03 |
swak4foam
|
#41 |
New Member
navid
Join Date: May 2012
Posts: 6
Rep Power: 14 |
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. |
|
March 2, 2014, 15:23 |
|
#42 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
March 2, 2014, 15:43 |
|
#43 |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
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 This is a clean install No file 'swakConfiguration'. Python etc won't work. See README for details Checking swak4Foam-version and generating file Swak version is 0.3.0 Bison is version 2.3 swak4Foam only confirmed to work with Bison >= 2.4 Code:
icoFoam /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.1.1-221db2718bbb |
|
March 2, 2014, 16:02 |
|
#44 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
@kingjewel1: Quote:
Which Linux distribution are you using? Best regards, Bruno |
||
March 2, 2014, 16:13 |
|
#45 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
Quote:
|
||
March 2, 2014, 16:39 |
|
#46 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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:
|
||
March 2, 2014, 16:49 |
|
#47 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
http://sourceforge.net/apps/mantisbt...iew.php?id=211
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
March 2, 2014, 17:19 |
|
#48 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
EDIT: I've installed the FLEX thing and swak is installing... I'll update soon
Quote:
Code:
[cenmk@login2 swak4Foam_2.x]$ ./Allwmake Previously compiled for OpenFOAM 2.1.1 No file 'swakConfiguration'. Python etc won't work. See README for details Checking swak4Foam-version and generating file Swak version is 0.3.0 Bison is version 2.7 Flex is version 2.5.4 (Minor version: 4) swak4Foam only confirmed to work with Flex >= 2.5.35 (2.5.33 may work, but 2.5.4 definitely not) Set the environment variable USE_OLD_FLEX if you want to continue anyway |
||
March 2, 2014, 17:44 |
|
#49 |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
Code:
mkdir: `': No such file or directory make: *** [/libswak4FoamParsers.so] 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 |
|
March 2, 2014, 18:14 |
|
#50 | |||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 |
||||
March 2, 2014, 19:08 |
|
#51 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
Quote:
Code:
[cenmk@login2 swak4Foam_2.x]$ tail -f make.log No file 'swakConfiguration'. Python etc won't work. See README for details Checking swak4Foam-version and generating file Swak version is 0.3.0 Bison is version 2.3 swak4Foam only confirmed to work with Bison >= 2.4 Compiles with 2.3 but has offset-problems with locations which break the Plugin-functionality Set the environment variable USE_OLD_BISON if you want to continue anyway Requirements for Library not satisfied. I see no sense in going on |
||
March 3, 2014, 04:08 |
swak4foam
|
#52 | |
New Member
navid
Join Date: May 2012
Posts: 6
Rep Power: 14 |
Quote:
any help is appreciated. |
||
March 3, 2014, 08:27 |
|
#53 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
@kingjewel1:
Quote:
Code:
export PATH=$PWD/bison/bin:$PATH ./Allwmake > make.log 2>&1 |
||
March 3, 2014, 09:22 |
|
#54 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
Quote:
Code:
[cenmk@login2 swak4Foam_2.x]$ bison -V bison (GNU Bison) 2.7 [cenmk@login2 swak4Foam_2.x]$ flex -V flex 2.5.37 Code:
Previously compiled for OpenFOAM 2.1.1 No file 'swakConfiguration'. Python etc won't work. See README for details Checking swak4Foam-version and generating file Swak version is 0.3.0 Bison is version 2.7 Flex is version 2.5.37 (Minor version: 37) OpenFOAM-version: Major 2 Minor 1 Patch 1 (-1 == x) No change to swak4FoamParsers/foamVersion4swak.H mkdir: `': No such file or directory make: *** [/libswak4FoamParsers.so] Error 1 |
||
March 3, 2014, 09:37 |
|
#55 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
@kingjewel1:
There are two very important details that seem to be missing:
Last edited by wyldckat; March 3, 2014 at 09:38. Reason: see "edit:" |
|
March 3, 2014, 09:44 |
|
#56 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
Quote:
That gives no reply: Code:
[cenmk@login2 ~]$ echo $FOAM_USER_LIBBIN [cenmk@login2 ~]$ |
||
March 3, 2014, 10:45 |
|
#57 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
OK, if the following 2 commands gives you any valid output: Code:
echo $WM_PROJECT_DIR echo $HOME Code:
mkdir $HOME/.OpenFOAM echo 'export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION' > $HOME/.OpenFOAM/prefs.sh echo 'export FOAM_USER_APPBIN=$WM_PROJECT_USER_DIR/platforms/$WM_OPTIONS/bin' >> $HOME/.OpenFOAM/prefs.sh echo 'export FOAM_USER_LIBBIN=$WM_PROJECT_USER_DIR/platforms/$WM_OPTIONS/lib' >> $HOME/.OpenFOAM/prefs.sh echo 'export PATH=$PATH:$FOAM_USER_APPBIN' >> $HOME/.OpenFOAM/prefs.sh echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$FOAM_USER_LIBBIN' >> $HOME/.OpenFOAM/prefs.sh source $HOME/.OpenFOAM/prefs.sh 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 Last edited by wyldckat; March 3, 2014 at 11:27. Reason: Added the missing ' - as reported by kingjewel1 | PATH-> LD_LIBRARY_PATH and APPBIN->LIBBIN in the respective line |
||
March 3, 2014, 11:10 |
|
#58 |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
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 # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi #.... Some lines regarding licenses and alias etc module switch openmpi/1.4 openmpi/1.5.3 module switch intel/11.1.059 gnu/4.7.1 module switch intel gnu/4.8.1 #module add matlab module add openfoam export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/apps/applications/openfoam/2.1.1-test/1/default/ThirdParty-2.1.1/platforms/linux64GccDPOpt/lib/openmpi-1.5.3 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/apps/applications/openfoam/2.1.1-test/1/default/platforms/linux64GccDPOpt/lib/dummy/ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/apps/applications/openfoam/2.1.1-test/1/default/ThirdParty-2.1.1/platforms/linux64GccDPOpt/lib/ export PATH export PATH=$HOME/.local/bin:$PATH export LD_LIBRARY_PATH=$HOME/.local/lib Code:
[cenmk@login2 swak4Foam_2.x]$ module list Currently Loaded Modulefiles: 1) licenses 2) sge 3) bit/64 4) gnu/4.7.1 5) openmpi/1.5.3 6) user 7) ansys/14.0 8) openfoam/2.1.1 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 This is a clean install No file 'swakConfiguration'. Python etc won't work. See README for details Checking swak4Foam-version and generating file Swak version is 0.3.0 Bison is version 2.7 Flex is version 2.5.37 (Minor version: 37) OpenFOAM-version: Major 2 Minor 1 Patch 1 (-1 == x) No swak4FoamParsers/foamVersion4swak.H. Generated wmakeLnInclude: linking include files to simpleFunctionObjects/lnInclude /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory wmakeLnInclude: linking include files to ./lnInclude 'libNULL.so' is up to date. /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory wmakeLnInclude: linking include files to ./lnInclude 'libNULL.so' is up to date. /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory wmakeLnInclude: linking include files to ./lnInclude 'libNULL.so' is up to date. /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory wmakeLnInclude: linking include files to ./lnInclude 'libNULL.so' is up to date. /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory wmakeLnInclude: linking include files to ./lnInclude 'libNULL.so' is up to date. /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory wmakeLnInclude: linking include files to ./lnInclude 'libNULL.so' is up to date. /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory wmakeLnInclude: linking include files to ./lnInclude 'libNULL.so' is up to date. /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory wmakeLnInclude: linking include files to ./lnInclude 'libNULL.so' is up to date. /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory wmakeLnInclude: linking include files to ./lnInclude 'libNULL.so' is up to date. /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory wmakeLnInclude: linking include files to ./lnInclude 'libNULL.so' is up to date. /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory /apps/compilers/gnu/4.7.1/1/bit-64/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory wmakeLnInclude: linking include files to ./lnInclude 'libNULL.so' is up to date. SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Most people are fine without it ....etc int, Foam::DynamicList<char, 0u, 2u, 1u>&, int&, int, bool, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)' collect2: error: ld returned 1 exit status make[1]: *** [OpenFOAM.out] Error 1 make[1]: Leaving directory `/nobackup/cenmk/swak4Foam_2.x/Utilities/replayTransientBC' make: *** [replayTransientBC] Error 2 make: Target `application' not remade because of errors. |
|
March 3, 2014, 11:26 |
|
#59 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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. Last edited by wyldckat; March 3, 2014 at 11:27. Reason: see "edit:" |
|
March 3, 2014, 11:58 |
|
#60 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 -e If compilation of the grammers takes prohibitivly long set SWAK_COMPILE_GRAMMAR_OPTION to something like -O1 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)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
Tags |
swak4faom, swak4foam error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Installing swak4Foam 0.4.0 on ubuntu 14.04 | JFM | OpenFOAM Community Contributions | 1 | October 30, 2016 10:43 |
[swak4Foam] Installing swak4Foam on ubuntu 12.04 | fluidflowsteel | OpenFOAM Community Contributions | 1 | June 28, 2016 15:02 |
[swak4Foam] Installing swak4Foam with openFoam v3.0+ | RebelLion | OpenFOAM Community Contributions | 0 | March 11, 2016 20:10 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |
[swak4Foam] Installing swak4Foam to OpenFOAM in mac | Kaquesang | OpenFOAM Community Contributions | 22 | January 21, 2013 12:51 |