OpenFOAM 2.3.x on Mac OS X Yosemite 10.10.5 Installation Errors
Dear All,
First time I try to install OpenFOAM 2.3.x on MAC OS X Yosemite 10.10.5 using the instructionhttp://openfoamwiki.net/index.php/Installation/Mac_OS/OpenFOAM_2.3.x. Although I am struggling since several days to set the port selection similar to tutorial, I have following errors during setting db: First one: Code:
sudo port select --set db db48 Code:
sudo port select --set llvm mp-llvm-3.5 How can I fix these problems. Your help will be appreciated. By the way my selection looks $port sure select --summary Code:
Name Selected Options Thank you. Baris |
Quick answer: http://www.cfd-online.com/Forums/ope...lems-db48.html
|
Quote:
Thank you very much for your kind reply. I have installed finally openfoam into this version of mac. It can be run both manual and parallel as well. However, I have 2 other problems, If you can help be I will be really appraciated. First one is when I open new terminal and write icoFoam -help it shows following error: Code:
-bash: icoFoam: command not found Code:
export WM_PROJECT=OpenFOAM Code:
ERROR: ParaView not found in /Users/wuguanghao/OpenFOAM/ThirdParty-2.3.x/platforms/darwinIntel64Gcc/ParaView-4.1.0/ Thank you in advance. Baris |
Hi Baris,
In the file "~/.bashrc" you should not have all of that content. The idea is to only have the content that you originally had and then to add the line related to sourcing the OpenFOAM environment, for example: Code:
source /Users/wuguanghao/OpenFOAM/OpenFOAM-2.3.x/etc/bashrc As for using paraFoam, the instructions are given here: https://openfoamwiki.net/index.php/I...w_Installation Best regards, Bruno |
Hi Bruno,
Thank you very much for your help. You are great man :) Finally successfully I have installed OF into my mac. After that a friend asked me to install OF into same version of his MAC. I have tried several times same way, however I am getting following error when I am installing mpirun-gcc48 or mpirun-gcc49. By the way I can't not install gcc48 but I was able to install gcc49. I don't know the reason. Could you tell me that How can I fix following problem and install mpirun: Quote:
Thanks in advance. Baris |
Quick answer: I have no specific idea about this, because I don't have access to a Mac.
Nonetheless, I suspect that it has something to do with using OpenMPI 1.10, which is very recent and is possibly the reason for the problems you're having. I'm currently advising people to follow the instructions given by Alexei, which relies in Homebrew instead of Macports: https://github.com/mrklein/openfoam-...ion-&-Homebrew |
Hi,
I have the same problem when I want to install Openfoam on my macbook OS X 10.9.4 sudo port select --set llvm mp-llvm-3.5 Selecting 'mp-llvm-3.5' for 'llvm' failed: The specified version 'mp-llvm-3.5' is not valid. Any help is highly appreciated |
Quote:
|
Hi to all,
This is the tutorial which I have prepared how to install openfoam into MAC. Hope it helps you. https://www.researchgate.net/publica...nFOAM_into_MAC |
Hi Windscin,
port select --summary Name Selected Options ==== ======== ======= db none db48 none gcc mp-gcc48 mp-gcc48 mp-gcc5 none llvm none mp-llvm-3.7 none mpi openmpi-gcc48-fortran openmpi-gcc48-fortran openmpi-mp-fortran none python python27 python25-apple python26-apple python27 python27-apple none python2 none python25-apple python26-apple python27 python27-apple none I'll try to install a newer version next week. |
Quote:
your tutorial looks very useful, I'll try it soon. Regards |
Ali: Looks okay so far, except that you don't have mp-llvm-3.7 selected, which I am guessing is irrelevant since the only alternative is none.
I used this setup: Name Selected Options ==== ======== ======= cython none cython26 none gcc mp-gcc49 mp-gcc49 mp-gcc5 none llvm mp-llvm-3.7 mp-llvm-3.7 none mpi openmpi-gcc49-fortran mpich-gcc49-fortran openmpi-gcc49-fortran openmpi-mp-fortran none nosetests none nosetests26 none python python27 python26 python26-apple python27 python27-apple none python2 none python26 python27 none wxWidgets none wxWidgets-3.0 none I managed to get 2.3.x working with gcc49 and mp-llvm-3.7, but I also added WM_CC=/opt/local/bin/mpicc and WM_CXX=/opt/local/bin/mpicxx at the end of $HOME/OpenFoam/OpenFoam-2.3.x/etc/bashrc. (After verifying that the chain of symbolic links ended successfully. No kidding, at one point the chain broke and `which mpicc` said one thing, but mpicc -v said another.) Then I used this hack to allow macport's flex (2.6.0) to work with the package: % find . -name '*.L' -print then for each file found above, change #if YY_FLEX_SUBMINOR_VERSION < 34 to #if YY_FLEX_SUBMINOR_VERSION < 34 && YY_FLEX_MINOR_VERSION < 6 and then the code will work properly with flex 2.6 I used gcc49 mostly because it saved me adding another compiler version, but also because it has memory safeguards not found in gcc48. I trust you are installing on a case-sensitive filesystem? I.e., not the root filesystem -- which must be case insensitive or OS X breaks. |
All times are GMT -4. The time now is 06:11. |