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

[swak4Foam] swak4foam Installation Error on OpenFOAM 7

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2023, 03:03
Post swak4foam Installation Error on OpenFOAM 7
  #1
New Member
 
Jonathan Adams
Join Date: Apr 2023
Location: Adelaide, South Australia
Posts: 3
Rep Power: 3
j.adams is on a distinguished road
Hello all,


I apologise if this has been asked before, but I've had no luck finding anything similar online, and I don't know where to go from here.


I'm new to OpenFOAM, and I'm having an error installing swak4foam on OpenFOAM 7. I know the version is old, and newer versions may have better luck, but OF7 is the one I need to use for my project.


OpenFOAM 7 is installed in my /home/ directory, and I'm using a relatively fresh install of Ubuntu 22.04.01, if that helps.



I tried following Torsten Schenkel's tutorial on YouTube, which basically consisted of navigating to the OpenFOAM applications folder, and running:

'''
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam

cd swak4Foam

./AllwmakeAll
'''

Running this yields the error below. I can't really tell what the error is saying is wrong, nonetheless how to fix it:


'''
Current OpenFOAM version is 7.
This is a clean install

/home/jonathan/OpenFOAM/OpenFOAM-7/applications/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
Looking for Python 2
Looking for Python 3
Using our own Lua at /home/jonathan/OpenFOAM/OpenFOAM-7/applications/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 2021.05.0
hg info: af74ec7e1714
No 'bear' installed
Bison: /home/jonathan/OpenFOAM/OpenFOAM-7/applications/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at /home/jonathan/OpenFOAM/OpenFOAM-7/applications/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.6.4 (Minor version: 4)
OpenFOAM-version: Major 7 Minor 0 Patch -1 (-1 == x / 98) Fork: org
No swak4FoamParsers/foamVersion4swak.H. Generated

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


wmakeLnInclude: linking include files to simpleFunctionObjects/lnInclude
wmake libso swak4FoamParsers
/home/jonathan/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/applications/swak4Foam/Libraries/swak4FoamParsers/options:52: /home/jonathan/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/applications/swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory
make: *** No rule to make target '/home/jonathan/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/applications/swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop.
/home/jonathan/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/applications/swak4Foam/Libraries/swak4FoamParsers/options:52: /home/jonathan/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/applications/swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory
make: *** No rule to make target '/home/jonathan/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/applications/swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop.
wmake error: file '/home/jonathan/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt32Opt/applications/swak4Foam/Libraries/swak4FoamParsers/sourceFiles' could not be created in /home/jonathan/OpenFOAM/OpenFOAM-7/applications/swak4Foam/Libraries/swak4FoamParsers
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
'''

Initially I got the error that there was no binary 'python', which I was able to fix by installing
python-is-python3, but now I get this, which has no clear message telling me what the
error is.

Any help would be very much appreciated.

Thanks,
Jon.

Last edited by j.adams; April 23, 2023 at 03:08. Reason: Fixing formatting
j.adams is offline   Reply With Quote

Old   April 24, 2023, 00:17
Default Fixed!
  #2
New Member
 
Jonathan Adams
Join Date: Apr 2023
Location: Adelaide, South Australia
Posts: 3
Rep Power: 3
j.adams is on a distinguished road
Nevermind, all fixed now.


Using the github mirror of swak4foam seemed to work.
j.adams is offline   Reply With Quote

Old   August 30, 2024, 11:49
Default
  #3
New Member
 
Saadbin Khan
Join Date: Jul 2022
Posts: 1
Rep Power: 0
saadbin is on a distinguished road
Hi, which one of the clones are you using? Could you share the link? I am facing the same issue.
saadbin is offline   Reply With Quote

Reply

Tags
swak4foam


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
[swak4Foam] Swak4FOAM installation for OpenFOAM v1806 exx110 OpenFOAM Community Contributions 1 July 5, 2021 21:07
[swak4Foam] swak4foam >>>> INSTALLATION PROBLEM steven123 OpenFOAM Community Contributions 35 January 11, 2021 17:53
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
[Discussion] Restructuring the Installation page at openfoamwiki.net wyldckat OpenFOAM Installation 16 November 2, 2013 12:43
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55


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