|
[Sponsors] |
[OpenFOAM.com] Trouble installing swak4FOAM with openFOAM2006 on Ubuntu20.04 |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Chris Nossing
Join Date: Dec 2020
Posts: 3
Rep Power: 5 ![]() |
Hello,
I'm trying to install swak4FOAM following https://openfoamwiki.net/index.php/Contrib/swak4Foam. I'm running Ubuntu 20.04.1 and I've installed openFOAM2006 from their repository. Code:
openfoam: Installed: 2006.1-1 Candidate: 2006.1-1 Version table: *** 2006.1-1 500 500 https://dl.openfoam.com/repos/deb focal/main amd64 Packages Code:
Reading variables from 'swakConfiguration' Looking for Python 2 Found Python 2.7 Configuring Python 2.7 Using python2.7 at /usr/bin/python2.7-config for python2 Looking for Python 3 Found Python 3.8 Configuring Python 3.8 Using python3.8 at /usr/bin/python3.8-config for python3 Using our own Lua at /root/openFOAM/swak4Foam/privateRequirements Checking swak4Foam-version and generating file Swak version is 2020.06.0 hg info: 76087ce82a32 Using /usr/bin/bear to build compilation database Bison: /root/openFOAM/swak4Foam/privateRequirements/bin/bison Flex: /usr/bin/flex Bison at /root/openFOAM/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4) Flex is version 2.6.4 (Minor version: 4) Traceback (most recent call last): File "../maintainanceScripts/makeFoamVersionHeader.py", line 71, in <module> verString=sys.argv[1] IndexError: list index out of range No swak4FoamParsers/foamVersion4swak.H. Generated Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem ln: simpleFunctionObjects/lnInclude wmake libso swak4FoamParsers make: /wmake/makefiles/files: No such file or directory make: *** No rule to make target '/wmake/makefiles/files'. Stop. make: /wmake/makefiles/files: No such file or directory make: *** No rule to make target '/wmake/makefiles/files'. Stop. wmake error: file 'Make//sourceFiles' could not be created in /root/openFOAM/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 Thanks, Chris Last edited by PorkCharSui; December 17, 2020 at 08:08. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Chris Nossing
Join Date: Dec 2020
Posts: 3
Rep Power: 5 ![]() |
Found the problem. I had to source the following file first:
Code:
source /usr/lib/openfoam/openfoam2006/etc/bashrc |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,714
Rep Power: 40 ![]() ![]() |
Quote:
Another fast solution, simple enter "openfoam2006" (it is actually /usr/bin/openfoam2006) and you will have an interactive bash session with an OpenFOAM environment. |
||
![]() |
![]() |
![]() |
![]() |
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
OK. I'll adapt the script so that it fails with an error message if no OpenFOAM-version is initialized (it didn't occur to me that someone might try to compile swak without OpenFOAM)
__________________
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 |
||
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Chris Nossing
Join Date: Dec 2020
Posts: 3
Rep Power: 5 ![]() |
Thanks, that would help a lot. I'm a sysop installing the software for a user, so I tend to do installs from the OS perspective. I don't use the software, I only install it. Often this is the better way when compiling software for more then one user. It's not doable to open an application on every users system to install the plugins/addons.
|
|
![]() |
![]() |
![]() |
![]() |
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 ![]() ![]() |
Quote:
OK. My condolences If your users share their OpenFOAM-installations then you might be interested in maintainanceScripts/copySwakFilesToSite.sh That script covers the swak4Foam binaries compiled by/for the current user into a directory that is added to the PATH for everyone who uses that OpenFOAM-installation
__________________
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 |
openfoam2006, swak4foam, ubuntu20.04 |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Installing swak4foam on OpenFOAM 19.10 (Windows) | MCrossover97 | OpenFOAM Community Contributions | 4 | June 21, 2022 05:23 |
[foam-extend.org] Problems on installing Foam-extend 4.0/ swak4Foam on ubuntu18.0.4 | XJ_Wang | OpenFOAM Installation | 22 | December 19, 2021 07:55 |
SU2-7.0.1 on ubuntu 18.04 | hyunko | SU2 Installation | 7 | March 16, 2020 04:37 |
[swak4Foam] Error: Installing swak4Foam into OpenFOAM 2.3.0 on CentOS 7 | mushtime | OpenFOAM Community Contributions | 9 | July 23, 2017 15:27 |
[swak4Foam] Installing swak4Foam on ubuntu 12.04 | fluidflowsteel | OpenFOAM Community Contributions | 1 | June 28, 2016 14:02 |