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 Members List Search Today's Posts Mark Forums Read

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: 4
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: 590
Rep Power: 7
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: 4
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: 590
Rep Power: 7
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: 590
Rep Power: 7
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: 4
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,942
Blog Entries: 42
Rep Power: 121
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

Reply

Tags
allwmake, bash, installation, interpreter, swak4foam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 17 July 24, 2019 18:47
[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 19:27.