CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch (https://www.cfd-online.com/Forums/openfoam-installation/130113-compile-2-3-mac-os-x-patch.html)

arnolnic July 29, 2015 09:34

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 :)

pfontana August 6, 2015 03:20

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?

esujby August 9, 2015 09:50

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

ali.m.1 August 12, 2015 12:43

problem with openmpi-gcc48
 
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.

aquinter2 August 25, 2015 20:33

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?

pfontana August 25, 2015 20:43

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.


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