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

[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2015, 09:34
Default
  #221
New Member
 
Join Date: Apr 2015
Posts: 9
Rep Power: 11
arnolnic is on a distinguished road
I chose your second suggestion and added -lscotch to the Options' code myself - it worked perfectly fine!

What can I say, once again thank you very much for taking your time and helping
arnolnic is offline   Reply With Quote

Old   August 6, 2015, 03:20
Default
  #222
New Member
 
Paul W. Fontana
Join Date: Jul 2013
Posts: 5
Rep Power: 13
pfontana is on a distinguished road
I have been trying to install OpenFOAM on Mac OS X 10.10.4 following the steps at https://openfoamwiki.net/index.php/I...OpenFOAM_2.3.x. Everything goes smoothly until I enter

sudo port select --set db db48

I get

Selecting 'db48' for 'db' failed: The configuration file '/opt/local/etc/select/db/base' could not be opened.

When I enter

ls /opt/local/etc/select/db/

it just lists

db48

When I type 'port select --summary' I get
Name Selected Options
==== ======== =======
db none db48 none
gcc mp-gcc48 mp-gcc48 mp-gcc49 none
llvm mp-llvm-3.5 mp-llvm-3.5 none
mpi openmpi-gcc48-fortran openmpi-gcc48-fortran openmpi-mp-fortran none
python python27 python26-apple python27 python27-apple none
python2 none python26-apple python27 python27-apple none

(sorry I don't know how to do the nice formatting.)

How do I fix my files and get db48 selected?

What does a healthy /opt/local/etc/select/db/base have in its contents? I can just try constructing the file and hope that its being missing is the only problem.

[ --- Moderator merge --- ]

I'm trying to install OpenFOAM on Mac OS X 10.10.4. I followed the instructions step by step and got as far as
Quote:
sudo port select --set db db48
and I get

Quote:
Selecting 'db48' for 'db' failed: The configuration file '/opt/local/etc/select/db/base' could not be opened.
In fact, the file 'base' does not exist there. When I type
Quote:
ls /opt/local/etc/select/db/
all I get is
Quote:
db48
Can I just build that file and hope the fact that it's missing isn't a symptom of other trouble? If so, what needs to be in it? If not, where is the installation going off track and how do I fix it?

Last edited by wyldckat; August 7, 2015 at 19:21. Reason: merged two posts posted on the same day, same question, similar details
pfontana is offline   Reply With Quote

Old   August 9, 2015, 09:50
Default
  #223
Senior Member
 
nasir musa yakubu
Join Date: Mar 2014
Location: Birmingham
Posts: 109
Rep Power: 12
esujby is on a distinguished road
hello, my advice, if you wanna quick get up and running, i would recommend using parallel to run ubuntu on mac, then install open foam, very easy way to go i reckon....goodluck having fun with open foam
esujby is offline   Reply With Quote

Old   August 12, 2015, 12:43
Default problem with openmpi-gcc48
  #224
Member
 
Ali
Join Date: Oct 2013
Location: Scotland
Posts: 66
Rep Power: 13
ali.m.1 is on a distinguished road
I'm trying to get OpenFOAM to work on my mac, but one thing is holding the process up. openmpi will not install, as my c compiler isn't working.
When i do the command
Quote:
sudo port install openmpi-gcc48
it fails, and the reason in the log file says, 'error: C compiler cannot create executables'.
I've tried installing openmpi, but something is obviously wrong with the compiler. I'm running 10.10.4, with xcode6.4, and command line tools installed. Any help would be appreciated!

EDIT:

I deleted macports, and started again. Now everything works, except db48. I'm at the same stage as #222, in my '/opt/local/etc/select/db/' I just have db, and no 'base' file.

Last edited by ali.m.1; August 13, 2015 at 05:56.
ali.m.1 is offline   Reply With Quote

Old   August 25, 2015, 20:33
Unhappy
  #225
New Member
 
Andres F.
Join Date: Aug 2015
Posts: 1
Rep Power: 0
aquinter2 is on a distinguished road
Hello, I am having the same issue just mention few post above.
I am not able to fix: db ---> db48
anyhelp is welcome.

regards, Andres

------------

Paul Fontana, did you were able to fix it?

Last edited by wyldckat; August 26, 2015 at 18:46. Reason: merged posts that were a few minutes apart
aquinter2 is offline   Reply With Quote

Old   August 25, 2015, 20:43
Default
  #226
New Member
 
Paul W. Fontana
Join Date: Jul 2013
Posts: 5
Rep Power: 13
pfontana is on a distinguished road
No. I gave up and installed with Homebrew instead. I did get that to work using the instructions at https://github.com/mrklein/openfoam-...20&%20Homebrew, but I still had some trouble and had to increase my maxfiles and maxproc settings, and there were a couple of other minor issues. It's working now, though.
aquinter2 likes this.
pfontana is offline   Reply With Quote

Reply


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
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 08:30
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 38 March 8, 2017 14:48
[mesh manipulation] Importing Multiple Meshes thomasnwalshiii OpenFOAM Meshing & Mesh Conversion 18 December 19, 2015 19:57
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 03:01
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


All times are GMT -4. The time now is 02:51.