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

[swak4Foam] [OpenFOAM plus] [v1612+] swak4Foam installation problem in Windows (Allwmake)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2017, 09:27
Default [OpenFOAM plus] [v1612+] swak4Foam installation problem in Windows (Allwmake)
  #1
Member
 
Join Date: May 2017
Posts: 47
Rep Power: 9
LThomes is on a distinguished road
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
saving the swak4Foam files in the workingDir folder (C:\Users\adm).
Then, the next step would be to go into swak4Foam's main source folder and use the command:
Code:
./Allwmake > log.make 2>&1
That's the problem. The first time I did this, the following error message came up:

Code:
bash: ./Allwmake: /bin/bash^M: bad interpreter: No such file or directory
Then I found in the internet that I would have to convert the Allwmake file to UNIX. So I did so, but a new error message appeared:

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
Can anybody help me?

Thanks in advance

Last edited by wyldckat; May 27, 2017 at 07:46. Reason: Added [CODE][/CODE] markers
LThomes is offline   Reply With Quote

Old   May 9, 2017, 09:59
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
> /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)
piu58 is offline   Reply With Quote

Old   May 10, 2017, 09:16
Default
  #3
Member
 
Join Date: May 2017
Posts: 47
Rep Power: 9
LThomes is on a distinguished road
Quote:
Originally Posted by piu58 View Post
> /bin/bash^M

I assume, here is a ^M = 0xd too much. Remove it with a hex editor (replace it by 0xa).
I don't get it. Where is there a ^M? In the Allwmake file there is no ^M.
LThomes is offline   Reply With Quote

Old   May 10, 2017, 09:36
Default
  #4
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
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)
piu58 is offline   Reply With Quote

Old   May 10, 2017, 09:37
Default
  #5
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
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)
piu58 is offline   Reply With Quote

Old   May 10, 2017, 11:09
Default
  #6
Member
 
Join Date: May 2017
Posts: 47
Rep Power: 9
LThomes is on a distinguished road
Quote:
Originally Posted by piu58 View Post
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?
Oh, I think I got it. I looked at the Allwmake script with a hex editor and replaced the "0d"s with "0a". But it did not work. I'm having the same error (as follows) and serveral lines of the Allwmake file (not in hex) are missing.

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

Old   May 27, 2017, 07:53
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Then delete the previous swak4Foam repository folder that you cloned and "git clone" it again.

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 .
WARNING: make sure you are running the first command in the correct folder, since it will delete all of the local files.
The second command will checkout the files once again.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 6, 2020, 14:36
Default Same problem with v2006
  #8
New Member
 
Jake
Join Date: Oct 2020
Posts: 1
Rep Power: 0
jakehoagie is on a distinguished road
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 have looked in my usr/bin/env and found files named python2 and python3 but no file named python. I'm not sure what to do.

I appreciate any help! Thanks!
jakehoagie is offline   Reply With Quote

Reply

Tags
allwmake, bash, installation, interpreter, 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
[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


All times are GMT -4. The time now is 08:56.