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

[OpenFOAM.com] Trouble installing swak4FOAM with openFOAM2006 on Ubuntu20.04

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 16, 2020, 11:37
Default Trouble installing swak4FOAM with openFOAM2006 on Ubuntu20.04
  #1
New Member
 
Chris Nossing
Join Date: Dec 2020
Posts: 3
Rep Power: 5
PorkCharSui is on a distinguished road
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
Most of the compilation seems to succeed, but I get an error at the end which I'm not able to resolve. The "simpleFunctionObjects" library seems to be failing compilation.
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
I've attached the entire log from the make process. I would greatly appreciate any help.

Thanks,
Chris
Attached Files
File Type: txt log.make.txt (66.6 KB, 9 views)

Last edited by PorkCharSui; December 17, 2020 at 08:08.
PorkCharSui is offline   Reply With Quote

Old   December 18, 2020, 09:23
Default
  #2
New Member
 
Chris Nossing
Join Date: Dec 2020
Posts: 3
Rep Power: 5
PorkCharSui is on a distinguished road
Found the problem. I had to source the following file first:
Code:
 source /usr/lib/openfoam/openfoam2006/etc/bashrc
After that compilation finished wo/ a problem.
PorkCharSui is offline   Reply With Quote

Old   December 18, 2020, 15:09
Default
  #3
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by PorkCharSui View Post
Found the problem. I had to source the following file first:
Code:
 source /usr/lib/openfoam/openfoam2006/etc/bashrc
After that compilation finished wo/ a problem.

Another fast solution, simple enter "openfoam2006" (it is actually /usr/bin/openfoam2006) and you will have an interactive bash session with an OpenFOAM environment.
olesen is offline   Reply With Quote

Old   December 21, 2020, 06:28
Default
  #4
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by PorkCharSui View Post
Found the problem. I had to source the following file first:
Code:
 source /usr/lib/openfoam/openfoam2006/etc/bashrc
After that compilation finished wo/ a problem.

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
gschaider is offline   Reply With Quote

Old   December 21, 2020, 06:49
Default
  #5
New Member
 
Chris Nossing
Join Date: Dec 2020
Posts: 3
Rep Power: 5
PorkCharSui is on a distinguished road
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.
PorkCharSui is offline   Reply With Quote

Old   December 21, 2020, 10:10
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by PorkCharSui View Post
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.

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
gschaider is offline   Reply With Quote

Reply

Tags
openfoam2006, swak4foam, ubuntu20.04


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] 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


All times are GMT -4. The time now is 07:31.