CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

./Allrun not working, failed with "Can't open /bin/tools/RunFunctions"

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 25, 2014, 02:28
Question ./Allrun not working, failed with "Can't open /bin/tools/RunFunctions"
  #1
Member
 
BO WANG
Join Date: Sep 2014
Posts: 37
Rep Power: 11
wang219910611 is on a distinguished road
HI everyone,

I am a newbee for both Linux and Openfoam. I am studying the tutorials. I have run the ./Allrun successfully in the icoFoam folder. However, when I tried to run this :

bo@bo-OptiPlex-7010:~/OpenFOAM/bo-2.3.0/run/tutorials$ ./Allrun

following error showed up:

./Allrun: 34: .: Can't open /bin/tools/RunFunctions.

And I am sure that I have RunFunctions in the fllowing routine:
/home/bo/OpenFOAM/OpenFOAM-2.3.0/bin/tools

Is anyone kind enough to help me out of this? Many thanks.
wang219910611 is offline   Reply With Quote

Old   October 25, 2014, 09:41
Default
  #2
Member
 
BO WANG
Join Date: Sep 2014
Posts: 37
Rep Power: 11
wang219910611 is on a distinguished road
HI everyone, problem solved..a stupid mistake.

Thanks for the attention anyway.
wang219910611 is offline   Reply With Quote

Old   July 2, 2015, 06:02
Default
  #3
New Member
 
sagar gurnani
Join Date: Jun 2015
Location: surat gujarat
Posts: 6
Rep Power: 10
sagarg is on a distinguished road
Hey how do you resolved this ?
sagarg is offline   Reply With Quote

Old   July 18, 2015, 17:52
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Quote:
Originally Posted by sagarg View Post
Hey how do you resolved this ?
Quick answer: The OpenFOAM environment was not active in the current command line; for example, OpenFOAM 2.3.0 installed with the Deb package on Ubuntu can be activated by running:
Code:
source/opt/openfoam230/etc/bashrc
More details can be found here: http://openfoamwiki.net/index.php/In...with_the_Shell
philippconen likes this.
wyldckat is offline   Reply With Quote

Old   May 12, 2020, 03:01
Default
  #5
Member
 
SimonStar's Avatar
 
Simon
Join Date: Sep 2019
Location: Germany
Posts: 51
Rep Power: 6
SimonStar is on a distinguished road
Just for other who have the same Problem:

Another way that helped me a lot is written in this thread here:
Permission denied issue for OpenFoam 2.3.1 on Ubuntu

You can type in the folder containing the files
Code:
chmod +x All*
to give Allrun and Allclean the permission.
SimonStar is offline   Reply With Quote

Old   July 22, 2021, 04:11
Default
  #6
New Member
 
Philipp Conen
Join Date: Jul 2021
Location: Germany, NRW
Posts: 22
Rep Power: 4
philippconen is on a distinguished road
Quote:
Originally Posted by SimonStar View Post
You can type in the folder containing the files
Code:
chmod +x All*
to give Allrun and Allclean the permission.

Just wanted to share, that this solution did not worked out for me.

In the case of OpenFOAM extend 4.0 this made the trick:


Code:
source ~/foam/foam-extend-4.0/etc/bashrc
philippconen is offline   Reply With Quote

Old   July 27, 2022, 20:28
Default
  #7
New Member
 
Michael Jensen
Join Date: May 2022
Posts: 27
Rep Power: 3
mikethe1wheelnut is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: The OpenFOAM environment was not active in the current command line; for example, OpenFOAM 2.3.0 installed with the Deb package on Ubuntu can be activated by running:
Code:
source/opt/openfoam230/etc/bashrc
More details can be found here: http://openfoamwiki.net/index.php/In...with_the_Shell

In case anybody has problems with this, I submit that the recommended code does not actually work. you need a space between source and the first /. Like so:
Code:
source /opt/openfoam9/etc/bashrc
..maybe different systems do things differently.. I assume it's a simple typo.


-right, like phillip already observed. :-)
mikethe1wheelnut is offline   Reply With Quote

Reply

Tags
./allrun


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
Foam::error::printStack(Foam::Ostream&) with simpleFoam -parallel U.Golling OpenFOAM Running, Solving & CFD 52 September 23, 2023 03:35
How to setup a simple OpenFOAM cluster? TommiPLaiho OpenFOAM Installation 3 October 27, 2013 15:15
Initial conditions for uniform flow andreas OpenFOAM 5 November 16, 2012 15:00
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 09:50
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 10:23


All times are GMT -4. The time now is 20:24.