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

[waves2Foam] The file /bin/prepareCase.sh is not executable

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2014, 06:47
Default The file /bin/prepareCase.sh is not executable
  #1
New Member
 
Zaibin Lin
Join Date: May 2013
Location: Aberdeen, Scotland
Posts: 4
Rep Power: 9
auaries is on a distinguished road
Dear Niels,

Thank you very much for sharing waves2Foam.

I am encountering a problem on compiling your waves2Foam using the default Allwmake. The log shows everything is fine, but an error, which is "The file /bin/prepareCase.sh is not executale", appears when running waveFoam tutorial through Allrun command. As I tested, the command, cd $WAVES_DIR, doesn't work at the same time.

BTW, the command, wavesFoam -help, works, so I supposed that the waves2Foam I have should be compiled under waves2Foam r2042 and OpenFOAM-1.6-ext.

Can you please help me tackle this problem and run the tutorials?

Thank you very much in advance, and looking forward to your reply.

Kind regards,
Zaibin

Last edited by auaries; April 21, 2014 at 08:55.
auaries is offline   Reply With Quote

Old   April 21, 2014, 10:45
Default
  #2
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,864
Rep Power: 33
ngj will become famous soon enoughngj will become famous soon enough
Good evening Zaibin,

Read the second part of the error message. Namely, that you should make the file executable.

You can use the command

Code:
chmod
and for instance

Code:
chmod a+x prepareCase.sh
Kind regards

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   April 21, 2014, 10:58
Smile
  #3
New Member
 
Zaibin Lin
Join Date: May 2013
Location: Aberdeen, Scotland
Posts: 4
Rep Power: 9
auaries is on a distinguished road
Quote:
Originally Posted by ngj View Post
Good evening Zaibin,

Read the second part of the error message. Namely, that you should make the file executable.

You can use the command

Code:
chmod
and for instance

Code:
chmod a+x prepareCase.sh
Kind regards

Niels
Hi Niels,

Thank you so so much. Finally, it works and is a quite useful tool for my work.

Have a nice week.

Kind regards,
Zaibin
auaries is offline   Reply With Quote

Old   May 16, 2014, 16:39
Default
  #4
New Member
 
Bowlderster
Join Date: Mar 2009
Posts: 5
Rep Power: 13
bowlderster is on a distinguished road
Quote:
Originally Posted by ngj View Post
Good evening Zaibin,

Read the second part of the error message. Namely, that you should make the file executable.

You can use the command

Code:
chmod
and for instance

Code:
chmod a+x prepareCase.sh
Kind regards

Niels
Hi, Niels
When I try to run the waveFlume tutorial by Allrun, I notice that the same message appears as Zaibin mentioned. And the question is solved by the above command.
Yet the message is " The file /home/bowlderster/waves2Foam/src/bin/prepareCase.sh is not executable.", but the file is located at /waves2Foma/bin. Maybe somewhere should be revised a little, but I don't know.

After that, Another question appears as attached.
It seems something is wrong about Reading waveProperties.

I got it by other tutorials.

I am looking for the answer.

Regards,
bowlderster

log.waveFoam
Quote:
...
Reading g

Reading waveProperties


--> FOAM FATAL IO ERROR:
cannot find file

file: /home/bowlderster/waves2Foam/tutorials/waveFoam/waveFlume/constant/waveProperties at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting

Last edited by wyldckat; November 4, 2018 at 13:29. Reason: merged posts a few hours apart
bowlderster is offline   Reply With Quote

Old   May 17, 2014, 05:28
Default
  #5
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Deltares, Delft, The Netherlands
Posts: 1,864
Rep Power: 33
ngj will become famous soon enoughngj will become famous soon enough
Good morning,

It appears that I had not been testing on a clean svn-repository. I have now added waveProperties.input to the waveFlume tutorial.

Furthermore, I have changed the compilation process, so prepareCase.sh should automatically be made executable.

Thank you for reporting the bugs,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Old   March 6, 2020, 03:12
Default
  #6
New Member
 
Masoumeh
Join Date: Oct 2019
Posts: 12
Rep Power: 2
ms.hashempour is on a distinguished road
Quote:
Originally Posted by ngj View Post
Good evening Zaibin,

Read the second part of the error message. Namely, that you should make the file executable.

You can use the command

Code:
chmod
and for instance

Code:
chmod a+x prepareCase.sh
Kind regards

Niels
Dear Niels

I did the same as you told. But the error did not change. Although in prepareCase.Sh properties the permission is allowed.

What should I do?
ms.hashempour is offline   Reply With Quote

Old   March 7, 2020, 05:11
Default
  #7
New Member
 
Masoumeh
Join Date: Oct 2019
Posts: 12
Rep Power: 2
ms.hashempour is on a distinguished road
Dear guys I found a solution for my problem. I write it here for others which may need it.

first: use ./Allwclean and ./Allwmake for recompiling the waves2Foam again!

Second: Never Never copy the tutorials on desktop. Just Run them in their main folders.

It doesn't show that error again and examples compile correctly.


Hope it works for you too!
ms.hashempour is offline   Reply With Quote

Reply

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
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 11 November 1, 2016 06:43
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 03:23
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23


All times are GMT -4. The time now is 19:05.