|
[Sponsors] |
[swak4Foam] [OpenFOAM plus] [v1612+] swak4Foam installation problem in Windows (Allwmake) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 9, 2017, 09:27 |
[OpenFOAM plus] [v1612+] swak4Foam installation problem in Windows (Allwmake)
|
#1 |
Member
Join Date: May 2017
Posts: 47
Rep Power: 9 |
Hello,
I'm using OpenFoam for Windows and I'm having some trouble with the swak4Foam installation. First of all, I used the git command: Code:
git clone https://github.com/Unofficial-Extend-Project-Mirror/openfoam-extend-Breeder2.0-libraries-swak4Foam.git swak4Foam Then, the next step would be to go into swak4Foam's main source folder and use the command: Code:
./Allwmake > log.make 2>&1 Code:
bash: ./Allwmake: /bin/bash^M: bad interpreter: No such file or directory Code:
Previously compiled for OpenFOAM v1612+ No file 'swakConfiguration'. Python etc won't work. See README for details Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems theFiles.sh: line 2: : command not found theFiles.sh: line 18: : command not found theFiles.sh: line 41: syntax error: unexpected end of file Checking swak4Foam-version and generating file /usr/bin/env: python : No such file or directory /opt/OpenFOAM/OpenFOAM-v1612+/wmake/wmake: ./Allwmake: /bin/bash^M: bad interpreter: No such file or directory 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 occured to 5 other people before and has been solved on the MessageBoard Thanks in advance Last edited by wyldckat; May 27, 2017 at 07:46. Reason: Added [CODE][/CODE] markers |
|
May 9, 2017, 09:59 |
|
#2 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
> /bin/bash^M
I assume, here is a ^M = 0xd too much. Remove it with a hex editor (replace it by 0xa).
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
May 10, 2017, 09:16 |
|
#3 |
Member
Join Date: May 2017
Posts: 47
Rep Power: 9 |
||
May 10, 2017, 09:36 |
|
#4 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
Tha bash says it is :
> bash: ./Allwmake: /bin/bash^M: bad interpreter: No such file or directory
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
May 10, 2017, 09:37 |
|
#5 |
Senior Member
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15 |
Tha bash ssay it is :
> bash: ./Allwmake: /bin/bash^M: bad interpreter: No such file or directory Have you looked at the script with a hex editor?
__________________
Uwe Pilz -- Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950) |
|
May 10, 2017, 11:09 |
|
#6 | |
Member
Join Date: May 2017
Posts: 47
Rep Power: 9 |
Quote:
Previously compiled for OpenFOAM v1612+ No file 'swakConfiguration'. Python etc won't work. See README for details Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems theFiles.sh: line 2: : command not found theFiles.sh: line 18: : command not found theFiles.sh: line 41: syntax error: unexpected end of file Checking swak4Foam-version and generating file /usr/bin/env: python : No such file or directory /opt/OpenFOAM/OpenFOAM-v1612+/wmake/wmake: ./Allwmake: /bin/bash^M: bad interpreter: No such file or directory 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 occured to 5 other people before and has been solved on the MessageBoard |
||
May 27, 2017, 07:53 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I'm a bit late in answering to this, but the problem seems like it is due to how git is configured. On the following stackoverflow thread you can find more details: https://stackoverflow.com/questions/...nding-settings My suggestion is to start a new terminal (MSys command line?) where you are using Git and run: Code:
git config --global core.autocrlf input If you don't want to download again, you can try going into the folder "swak4Foam" via terminal and run: Code:
rm -r * git checkout . The second command will checkout the files once again. Best regards, Bruno
__________________
|
|
October 6, 2020, 14:36 |
Same problem with v2006
|
#8 |
New Member
Jake
Join Date: Oct 2020
Posts: 1
Rep Power: 0 |
I am trying to install swak4foam on OpenFOAM v-2006 and I continue to run into this error:
Code:
Reading variables from 'swakConfiguration' Looking for Python 2 Looking for Python 3 Found Python 3.8 Configuring Python 3.8 Using python3.8 at /usr/bin/python3.8-config for python3 Checking swak4Foam-version and generating file /usr/bin/env: ‘python’: No such file or directory hg info: 58b9a1dfa14c+ (develop) tip No 'bear' installed Bison: /home/jhougaard/OpenFOAM/OpenFOAM-v2006/swak4Foam/privateRequirements/bin/bison Flex: /usr/bin/flex Bison at /home/jhougaard/OpenFOAM/OpenFOAM-v2006/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4) Flex is version 2.6.4 (Minor version: 4) /usr/bin/env: ‘python’: No such file or directory 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 /home/jhougaard/OpenFOAM/OpenFOAM-v2006/build/linux64Gcc63DPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:69: /home/jhougaard/OpenFOAM/OpenFOAM-v2006/build/linux64Gcc63DPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory make: *** No rule to make target '/home/jhougaard/OpenFOAM/OpenFOAM-v2006/build/linux64Gcc63DPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop. /home/jhougaard/OpenFOAM/OpenFOAM-v2006/build/linux64Gcc63DPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:69: /home/jhougaard/OpenFOAM/OpenFOAM-v2006/build/linux64Gcc63DPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory make: *** No rule to make target '/home/jhougaard/OpenFOAM/OpenFOAM-v2006/build/linux64Gcc63DPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop. wmake error: file '/home/jhougaard/OpenFOAM/OpenFOAM-v2006/build/linux64Gcc63DPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/sourceFiles' could not be created in /home/jhougaard/OpenFOAM/OpenFOAM-v2006/swak4Foam/Libraries/swak4FoamParsers Parser library did not compile OK. No sense continuing as everything else depends on it I appreciate any help! Thanks! |
|
Tags |
allwmake, bash, installation, interpreter, swak4foam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.com] problems running in parallel on Mac OS X and Windows: only 1 cpu | windscion | OpenFOAM Installation | 20 | June 5, 2020 17:27 |
[OpenFOAM.com] v3.0+ problem installing OpenFoam v3.0+ on windows 8.1 | Naraa97 | OpenFOAM Installation | 1 | March 25, 2017 14:59 |
[OpenFOAM.com] v1606+ and v1612+ - Installation Issue on win7 | aurore_boreality | OpenFOAM Installation | 3 | February 13, 2017 15:00 |
[OpenFOAM.com] v1606+ Not running on Windows | oat | OpenFOAM Installation | 7 | September 19, 2016 06:20 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |