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

[swak4Foam] Installation issue for Swak4FOAM in OFv1906 Ubuntu 20.04.4 LTS

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 1 Post By Ale22pic
  • 1 Post By Ale22pic
  • 1 Post By Ale22pic
  • 1 Post By toolpost
  • 1 Post By toolpost

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2022, 05:14
Default Installation issue for Swak4FOAM in OFv1906 Ubuntu 20.04.4 LTS
  #1
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 16
chandra shekhar pant is on a distinguished road
Hello All,

I am trying to install Swak4FOAM in OF v1906 (Ubuntu 20.04.4 LTS) using the following steps:
  1. Downloaded the Swak4FOAM from https://sourceforge.net/p/openfoam-e.../tarball?path=
  2. Untar and changed the name to Swak4Foam
  3. Placed the folder at OpenFOAM/xyz-v1906
  4. Code:
    ./maintainanceScripts/compileRequirements.sh
    and
    Code:
    ./Allwmake[/CODE
But getting the errors, this is the output/log file after
Code:
./Allwmake
:


Code:
Current OpenFOAM version is v1906.
Previously compiled for OpenFOAM (v1906)

/home/xyz/OpenFOAM/xyz-v1906/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
Using our own Lua at /home/xyz/OpenFOAM/xyz-v1906/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Could not get version of the sources
Bison: /home/xyz/OpenFOAM/xyz-v1906/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at /home/xyz/OpenFOAM/xyz-v1906/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.6.4 (Minor version: 4)
No change to swak4FoamParsers/foamVersion4swak.H

Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem


wmake libso swak4FoamParsers
g++ -std=c++11 -m64 -DOPENFOAM=1906 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -Wno-unknown-pragmas -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPInt32Opt       -I/home/xyz/OpenFOAM/OpenFOAM-v1906/src/finiteVolume/lnInclude -I/home/xyz/OpenFOAM/OpenFOAM-v1906/src/surfMesh/lnInclude -I/home/xyz/OpenFOAM/OpenFOAM-v1906/src/sampling/lnInclude -I/home/xyz/OpenFOAM/OpenFOAM-v1906/src/fileFormats/lnInclude -I/home/xyz/OpenFOAM/OpenFOAM-v1906/src/triSurface/lnInclude -I/home/xyz/OpenFOAM/OpenFOAM-v1906/src/dynamicMesh/lnInclude -I/home/xyz/OpenFOAM/OpenFOAM-v1906/src/lagrangian/basic/lnInclude -I/home/xyz/OpenFOAM/OpenFOAM-v1906/src/surfMesh/lnInclude -I/home/xyz/OpenFOAM/OpenFOAM-v1906/src/meshTools/lnInclude -I../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/ -IlnInclude -I. -I/home/xyz/OpenFOAM/OpenFOAM-v1906/src/OpenFOAM/lnInclude -I/home/xyz/OpenFOAM/OpenFOAM-v1906/src/OSspecific/POSIX/lnInclude   -fPIC -c ../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.C -o Make/linux64GccDPInt32Opt/../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/outputFilterOutputControl.o
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 occurred to 5 other people before and has been solved on the MessageBoard
Any help would be appreciated, thanks in advance.
chandra shekhar pant is offline   Reply With Quote

Old   May 23, 2022, 05:37
Default
  #2
New Member
 
Alessio Piccolo
Join Date: May 2022
Location: Italy
Posts: 9
Rep Power: 3
Ale22pic is on a distinguished road
Hi, did you try to follow the guide:

https://openfoamwiki.net/index.php/I...tion/swak4Foam

It was handy for me, and I could install swak in various OpenFOAM versions. Let me know if you solve the problem.
Ale22pic is offline   Reply With Quote

Old   May 23, 2022, 07:03
Default
  #3
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 16
chandra shekhar pant is on a distinguished road
HelloAlessio,

Thanks for your prompt reply and help. Yes, indeed I used the manual, but it seems like I am using Bison 3.5.1 and in the manual it says that it may not support higher version of Bison (3 or higher). But as been given in the manual, for the newest version of swak4Foam this would be automatically taken into account by
Code:
./maintainanceScripts/compileRequirements.sh
, thus not sure, either I am not using the newest version of swak4Foam (how to check the version of swak4Foam without installing?) or something else is missing. Could you further comment, what needs to be done? Any further help would be much appreciated, thanks in advance.
chandra shekhar pant is offline   Reply With Quote

Old   May 23, 2022, 08:17
Default
  #4
New Member
 
Alessio Piccolo
Join Date: May 2022
Location: Italy
Posts: 9
Rep Power: 3
Ale22pic is on a distinguished road
If you check this site there are listed all the required part that you need to install to go on with the installation

https://openfoamwiki.net/index.php/I...g_dependencies

Let me know
Ale22pic is offline   Reply With Quote

Old   May 23, 2022, 08:35
Default
  #5
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 16
chandra shekhar pant is on a distinguished road
Hi Alessio,

Many thanks for your reply and help. I already tried with looking at these pages and found that the newest version of Swak4Foam should be able to install the pre-requisites automatically using
Code:
./maintainanceScripts/compileRequirements.sh
. Meanwhile, I am attaching the complete log file of the
Code:
 ./Allwmake
with this post. I am unable to figure out the source of error, any further comment would be appreciated, thanks in advance.
Attached Files
File Type: c log.c (7.2 KB, 4 views)
chandra shekhar pant is offline   Reply With Quote

Old   May 23, 2022, 09:06
Default
  #6
New Member
 
Alessio Piccolo
Join Date: May 2022
Location: Italy
Posts: 9
Rep Power: 3
Ale22pic is on a distinguished road
What is written inside the script compileRequirements.sh ?

Also, what version of Bison do you have? To check write in the terminal

Code:
bison --version
Ale22pic is offline   Reply With Quote

Old   May 23, 2022, 10:17
Default
  #7
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 16
chandra shekhar pant is on a distinguished road
Thanks again for your help. Inside that script all the pre-requisites like
Code:
 bison
etc will be installed. Although the bison version is 3.5.1. But for the same version of bison I was able to install swak4Foam previously, but it's not installing now. I even tried to first install python3 also, the installation seems to have advanced but haven't installed completely. I am not sure, what else is lacking/missing from my side.
chandra shekhar pant is offline   Reply With Quote

Old   May 24, 2022, 01:43
Default
  #8
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 16
chandra shekhar pant is on a distinguished road
Hello Again,

May be Python is playing an important role, could you please let me know which Python version you used to install the swak4Foam, by typing the following in terminal:
Code:
python -V
chandra shekhar pant is offline   Reply With Quote

Old   May 24, 2022, 08:50
Default
  #9
Member
 
Join Date: Apr 2012
Location: Trivandrum
Posts: 37
Rep Power: 14
toolpost is on a distinguished road
Hello Chandra,

Did you download the correct tarball? Try to download the sources from the Mercurial repository again.

Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam
cd swak4Foam
hg update develop
./Allwmake -j
Once I faced similar issue when I download sources from git. Just try your luck.

Last edited by toolpost; May 25, 2022 at 01:25.
toolpost is offline   Reply With Quote

Old   May 24, 2022, 09:13
Default
  #10
Member
 
Join Date: Apr 2012
Location: Trivandrum
Posts: 37
Rep Power: 14
toolpost is on a distinguished road
Also, in the log file
Code:
/usr/bin/env: ‘python’: No such file or directory
From google,
https://stackoverflow.com/questions/...-as-executable
toolpost is offline   Reply With Quote

Old   May 24, 2022, 09:18
Default
  #11
Senior Member
 
chandra shekhar pant
Join Date: Oct 2010
Posts: 220
Rep Power: 16
chandra shekhar pant is on a distinguished road
Thanks a lot @toolpost, I will check and post the update. But I was just wondering, since I used the same OF version, same Ubuntu version and same swak4Foam directory but on different computer configuration and it haven't worked, that is what annoyed me.
chandra shekhar pant 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] icoFoam: Command not found in OpenFOAM 3.0.1 installation on Ubuntu 16.10 febriyan91 OpenFOAM Installation 2 July 27, 2020 00:23
Installation of Ansys 19 on Ubuntu 18.4 victor pira ANSYS 9 October 3, 2019 10:30
[foam-extend.org] foam-extend 3.2 Paraview installation problem on Ubuntu 18.04 ordinary OpenFOAM Installation 3 September 1, 2018 22:01
[OpenFOAM.org] OpenFOAM 3.0.1 installation on Ubuntu 14.04 Hrushi OpenFOAM Installation 6 July 8, 2017 18:47
OF16 install on Ubuntu 12.04 LTS Precise Ralph M OpenFOAM Installation 5 February 18, 2013 18:21


All times are GMT -4. The time now is 04:43.