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

[Other] blockMesh: command not found - on Mac OS X

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2013, 10:51
Default blockMesh: command not found - on Mac OS X
  #1
New Member
 
Clive
Join Date: Mar 2013
Posts: 1
Rep Power: 0
nprociw@hotmail.com is on a distinguished road
Hi

I have installed OpenFOAM version 2.0.x on Mac OS X as shown by the instructions given at the following link:

http://www.optimulation.com/category.../installation/

I tried to run the cavity tutorial case but I have run into the error:

-bash: blockMesh: command not found

Does anybody have a clue how to fix this problem? I am new to open foam and Mac OS so I am pretty clueless as to how to fix this issue.

Thanks
nprociw@hotmail.com is offline   Reply With Quote

Old   April 6, 2013, 17:08
Default
  #2
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22
Lieven will become famous soon enough
Are any of the other commands like 'simpleFoam' available?
If not, the bashrc-file is probably not loaded. Make sure to add
Code:
source OpenFOAM/OpenFOAM-2.2.0/etc/bashrc
to ~/.profile
and to reboot (or re-login) afterwards.

Cheers,

L
Lieven is offline   Reply With Quote

Old   December 28, 2013, 13:19
Default
  #3
Senior Member
 
Join Date: Jan 2012
Posts: 197
Rep Power: 14
itsme_kit is on a distinguished road
Quote:
Originally Posted by nprociw@hotmail.com View Post
Hi

I have installed OpenFOAM version 2.0.x on Mac OS X as shown by the instructions given at the following link:

http://www.optimulation.com/category.../installation/

I tried to run the cavity tutorial case but I have run into the error:

-bash: blockMesh: command not found

Does anybody have a clue how to fix this problem? I am new to open foam and Mac OS so I am pretty clueless as to how to fix this issue.

Thanks
Hi

Have you solved your problem already

I got the same problem too
itsme_kit is offline   Reply With Quote

Old   March 3, 2015, 05:53
Default
  #4
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hi everybody,

Has anybody solved this problem yet?

Cheers,

Kate

Edit: @Lieven: Unfortunately that didn't work.
KateEisenhower is offline   Reply With Quote

Old   March 3, 2015, 06:17
Default
  #5
Senior Member
 
Lieven
Join Date: Dec 2011
Location: Leuven, Belgium
Posts: 299
Rep Power: 22
Lieven will become famous soon enough
Kate

Which version of OF are you using?
In which folder is it installed?
Could you perhaps post the output of
Code:
locate bashrc
Cheers,

L
Lieven is offline   Reply With Quote

Old   March 3, 2015, 07:00
Default
  #6
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Quote:
Originally Posted by Lieven View Post
Kate

Which version of OF are you using?
In which folder is it installed?
Could you perhaps post the output of
Code:
locate bashrc
Cheers,

L
Hi Lieven,

I want to use 2.3.1 on OS X Yosemite. Haven't been successful so far.
I tried to install it in the main user folder following the steps described in this guide: http://openfoamwiki.net/index.php/In...es_and_patches
The output of
Code:
locate bashrc
is
Code:
WARNING: The locate database (/var/db/locate.database) does not exist.
To create the database, run the following command:

  sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

Please be aware that the database can take some time to generate; once
the database has been created, this message will no longer appear.
.
Should I run the proposed command?
KateEisenhower is offline   Reply With Quote

Old   March 3, 2015, 07:09
Default
  #7
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You would like to run 2.3.1 and yet use guide for 2.2.2. So please post more details about your way of installation.

To check if you have set up environment variables correctly, run in terminal:

Code:
$ export | grep -E '(FOAM_|WM_)'
If output is empty, then you have missed the step 4.3.9 in the guide (in fact you have to do this every time you start new terminal).

Quote:
Should I run the proposed command?
You could but I am not quite sure you will use locate command in the future (you have got find and Spotlight).
alexeym is offline   Reply With Quote

Old   March 3, 2015, 12:10
Default
  #8
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

You would like to run 2.3.1 and yet use guide for 2.2.2. So please post more details about your way of installation.

To check if you have set up environment variables correctly, run in terminal:

Code:
$ export | grep -E '(FOAM_|WM_)'
If output is empty, then you have missed the step 4.3.9 in the guide (in fact you have to do this every time you start new terminal).



You could but I am not quite sure you will use locate command in the future (you have got find and Spotlight).
Hi alexeym,

I'd love to use a guide for 2.3.1 if I could find one. Since gschaider recommended to use the 2.2.2 guide in his post (http://www.cfd-online.com/Forums/ope...s-x-patch.html), I thought it would be fine.

When I ran
Code:
$ export | grep -E '(FOAM_|WM_)'
I got
Code:
-bash: $: command not found
as an answer. I don't know if this helps.

When I execute step 4.3.9 of the guide, I get the following answer:
Code:
-bash: mpicc: command not found
Using paraview in directory /Applications/paraview.app
Is this okay?

In my opinion it would be the best to clear my harddrive and start all over again.
KateEisenhower is offline   Reply With Quote

Old   March 3, 2015, 12:37
Default
  #9
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Quote:
Originally Posted by KateEisenhower View Post
I'd love to use a guide for 2.3.1 if I could find one. Since gschaider recommended to use the 2.2.2 guide in his post (http://www.cfd-online.com/Forums/ope...s-x-patch.html), I thought it would be fine.
It's OK but still it is worth to mention the guide you have used. At least now it is clear that you are using Macports and unknown patch.

Quote:
When I ran
Code:
$ export | grep -E '(FOAM_|WM_)'
I got
Code:
-bash: $: command not found
as an answer. I don't know if this helps.
$ in my post is the shell prompt, so you do not need to copy it. If you would like to have copy-paste variant, here it is:

Code:
export | grep -E '(FOAM_|WM_)'
Quote:
When I execute step 4.3.9 of the guide, I get the following answer:
Code:
-bash: mpicc: command not found
Using paraview in directory /Applications/paraview.app
Is this okay?
No, it is not OK. It means you have problem with OpenMPI installation. Either you have not selected default MPI installation or simply forgot to install it.

Quote:
In my opinion it would be the best to clear my harddrive and start all over again.
Well, if you follow the same installation guide you will end up with the same broken build. So I am not sure that this is right solution.
alexeym is offline   Reply With Quote

Old   March 5, 2015, 09:02
Default
  #10
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,



It's OK but still it is worth to mention the guide you have used. At least now it is clear that you are using Macports and unknown patch.



$ in my post is the shell prompt, so you do not need to copy it. If you would like to have copy-paste variant, here it is:

Code:
export | grep -E '(FOAM_|WM_)'


No, it is not OK. It means you have problem with OpenMPI installation. Either you have not selected default MPI installation or simply forgot to install it.



Well, if you follow the same installation guide you will end up with the same broken build. So I am not sure that this is right solution.
Thanks a lot for your help. I guess I have a lack of basic knowledge. Because of that I posted a question on the main 2.3 patch thread (http://www.cfd-online.com/Forums/ope...tml#post534615). Maybe I will come back to this thread later.

Thanks again,

Kate
KateEisenhower is offline   Reply With Quote

Old   March 15, 2015, 17:54
Default
  #11
New Member
 
Andre Mas
Join Date: Jan 2015
Location: Montreal, Canada
Posts: 18
Rep Power: 11
ajmas is on a distinguished road
Could you give the following script a go and let me know if it helps you:

https://github.com/ajmas/scripts-et-...sx-macports.sh

It should do much of the work for you, including creating the disk image, checking out the necessary 'Mac Ports', checking out the patched source for MacOS X and building the project. It is still a work in progress, but hopefully it should remove some of the guess work.

Please let me know this helps.
ajmas 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
[RapidCFD] Discussion thread on how to install and use RapidCFD newoscar OpenFOAM Community Contributions 84 September 2, 2022 01:04
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 13:21
[Gmsh] Insatlling gmsh from the source code-issue? CFD-Lover OpenFOAM Meshing & Mesh Conversion 20 June 12, 2018 06:39
injection problem Mark New FLUENT 0 August 4, 2013 01:30
version GLIBCXX_3.4.9 and GLIBCXX_3.4.11 not found ovie Main CFD Forum 1 April 19, 2010 14:00


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