|
[Sponsors] |
[swak4Foam] problem while installing swak4Foam on OF-2.0.1 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 17, 2012, 06:29 |
problem while installing swak4Foam on OF-2.0.1
|
#1 |
Member
Laurent Orgogozo
Join Date: Mar 2011
Location: Toulouse
Posts: 33
Rep Power: 15 |
Dear Foamers,
I try to install swak4Foam on OF-2.0.1, but when I run the Makefile I get the following error : make: ./downloadSimpleFunctionObjects.sh : commande not found Indeed, the downloadSimpleFunctionObjects.sh script does not exist in my file src/swak4Foam, but it is not present in the downloads I got from svn. At what stage of the installation would possibly lie my mistake? Thank you in advance for your help. |
|
April 17, 2012, 09:16 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Laurent,
From which repository did you download swak4Foam? http://openfoamwiki.net/index.php/Co...am#Downloading Did you use the command: Code:
svn checkout https://openfoam-extend.svn.sourcefo...ies/swak4Foam/ Bruno
__________________
|
|
April 17, 2012, 10:47 |
|
#3 |
Member
Laurent Orgogozo
Join Date: Mar 2011
Location: Toulouse
Posts: 33
Rep Power: 15 |
Dear Bruno,
Yes I did. I have made it once again to be sure : 1) downloading with the svn above, 2) 'wmake all' from within the /opt/openfoam201/ directory 3) 'make install' from within the /opt/openfoam201/src/swak4Foam directory and then the downloadSimpleFunctionObjects.sh is still missing in the /opt/openfoam201/src/swak4Foam directory. Best regards, and Thank you for your quick help. Laurent |
|
April 17, 2012, 11:07 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
April 17, 2012, 11:40 |
|
#5 |
Member
Laurent Orgogozo
Join Date: Mar 2011
Location: Toulouse
Posts: 33
Rep Power: 15 |
The Makefile call this script, at line 23
I run the installation while commenting this line, and then it gave me the following error message (last four lines of a quite long compiling log): make[1]: *** [Make/linuxGccDPOpt/pythonInterpreterWrapper.o] Erreur 1 make[1]: quittant le répertoire « /opt/openfoam201/src/swak4Foam/Libraries/pythonIntegration » Requirements for Library not satisfied. I see no sense in going on make: *** [install] Erreur 42 |
|
April 17, 2012, 11:54 |
|
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
April 17, 2012, 13:03 |
|
#7 |
Member
Laurent Orgogozo
Join Date: Mar 2011
Location: Toulouse
Posts: 33
Rep Power: 15 |
Ok ./Allwmake after ./Allwclean works
Thank you for your help, I am now able too enjoy swak4Foam ! Best regards, Laurent |
|
April 17, 2012, 20:41 |
|
#8 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
On a second thought. Could your previous compilation problems have been caused by you not having write permissions to the global folders? Anyway. In addition to Allwclean try removeSwakFilesFromGlobal.sh from the maintainanceScripts once. Just to be sure that no unwanted residuals lie there from your previous experiments (as you're using a "per user" installation now) |
||
April 18, 2012, 06:29 |
|
#9 |
Member
Laurent Orgogozo
Join Date: Mar 2011
Location: Toulouse
Posts: 33
Rep Power: 15 |
Hello Gerhardt,
Ok, done. Effectively I've been obliged to log as root user to instal swak4Foam ; in order to be able to use swak4Foam from within my regular account as a simple user, I've used successfully copySwakFilesToSite.sh. Best regards, Laurent |
|
September 25, 2012, 13:25 |
|
#10 |
New Member
ali
Join Date: Aug 2012
Posts: 5
Rep Power: 14 |
Hi ,
i'm also having trouble with the swak4Foam installation. it seems that it cudnt find any python.h file, while compiling pythonInterpreterWrapper.C. could someone pls help me to settle this. i attach part of my log installation file. thnxomuch! |
|
September 25, 2012, 13:29 |
|
#11 |
New Member
ali
Join Date: Aug 2012
Posts: 5
Rep Power: 14 |
sori, here's the attachment log file!
another error is while compiling the swakCodedFunctionObject.C !! thanks! |
|
September 25, 2012, 13:53 |
|
#12 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Anyway: the location of Python.h depends on your distribution and therefor I can't answer this. If locate is configured then "locate Python.h" might help you. Adapt the swakConfiguration file with the results. BTW: some toy-distributions (SuSE for instance) don't install the headers with Python. They have them in a special package (python-devel or so)
__________________
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 |
||
September 25, 2012, 13:57 |
|
#13 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
That is because the codedFunctionObject changed its interface from 2.0 to 2.1. I think I answered this recently somewhere else: remove from Libraries/swakFunctionObjects/Make/files the line with swakCodedFunctionObject.C. You probably won't need it anyway
__________________
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 |
|
September 25, 2012, 15:09 |
|
#14 |
New Member
ali
Join Date: Aug 2012
Posts: 5
Rep Power: 14 |
thanks gscheider!!
that solved the compiling problem for swakFunctionObject! As for python functionality, i rarely use it, so as u said, i put it aside 1st. |
|
October 29, 2012, 06:43 |
|
#15 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
I'm having troubles building swak on OF-2.0.1 as well. It's complaining about missing 'mappedWallFvPatch.H' and related files. Is it possible this was added on by OpenCFD at a later release or is my installation botched? (the file is indeed not to be found in my OF-2.0.1 installation, but is there in OF-2.1)
- Anton
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
October 31, 2012, 19:58 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Anton,
I think Bernhard didn't want to waste any more time with such an old version of OpenFOAM Anyway, I've done some trials+errors+fixes+tests with OpenFOAM 2.0.1, 2.0.x and 2.1.x and the result is in this branch: https://github.com/wyldckat/swak4foam/tree/OF20 The two commits with the necessary changes are here: https://github.com/wyldckat/swak4foam/commits/OF20 I'll open the bug report tomorrow and submit a patch + HG bundle on the bug tracker. edit: bug report done: http://sourceforge.net/apps/mantisbt...iew.php?id=158 Best regards, Bruno
__________________
Last edited by wyldckat; November 1, 2012 at 05:11. Reason: see "edit:" |
|
November 1, 2012, 05:53 |
|
#17 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Awesome, thanks a ton! I don't quite understand why I got the unmodified version when using 'git clone https://github.com/wyldckat/swak4foam.git', and I had to do 'git checkout ae28e5f76e4c0e8666cf7eb8a35515dba7b4689f' to get the proper version, but now it seems to work (like David, I use google-git...).
By the way, I had a drive-by look at the rest of your repos, and I noticed a typo in the header of interpolateVolumeField.C: I think you intended to write "Interpolate vol*Field to surface*Field".
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
November 1, 2012, 09:46 |
|
#18 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
Code:
git checkout OF20 I placed it in a separate branch, because that's how I usually use github and its forks: when using a fork, I always make changes in my own branches, to preserve the original branches for reference Quote:
__________________
|
|||
November 7, 2012, 10:48 |
|
#19 | ||
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
|||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] foam-extend-3.2 installing problem: swak4Foam failed to install due to Bison | lxwd | OpenFOAM Community Contributions | 1 | March 20, 2016 17:03 |
[swak4Foam] Error installing swak4Foam 0.2.3 on OF 2.2.2 | Mojtaba.a | OpenFOAM Community Contributions | 2 | December 7, 2013 04:32 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |
[swak4Foam] installation problem: "./Allwmake: ... [[: not found" | Rajarshi | OpenFOAM Community Contributions | 8 | May 13, 2013 09:05 |
[swak4Foam] problem on installing swak4Foam | navid2 | OpenFOAM Community Contributions | 2 | May 30, 2012 05:32 |