Extend Project 1.6-ext Binary Release for Mac OS X
Binary release for Mac OS X
I have created a sparse disk image for OpenFOAM-1.6-ext and a Mac, available on Extend Sourceforge Download section. This is what you do to use it: 1) download the dmg file http://sourceforge.net/projects/openfoam-extend/files/ -> OpenFOAM-1.6-ext.dmg 2) double-click on it, to mount it 3) open a terminal and do the following cd mkdir OpenFOAM cd OpenFOAM ln -s /Volumes/OpenFOAM-1.6-ex . and you are ready. Make yourself a run directory: mkdir -p ~/OpenFOAM/<yourName>-1.6-ext/run source the environment . ~/OpenFOAM/OpenFOAM-1.6-ext/etc/bashrc and you are ready to run. Please report success/failure. Compiling OpenFOAM-1.6-ext on a Mac If you want to compile from scratch, find yourself a Mac (Yum!) and install XCode. The next steps are: 1) download and install wget 2) download and install rpm 3) download and install git 4) sort out malloc header link cd /usr/include/ sudo ln -s malloc/malloc.h . 5) sort out gmake cd /usr/local/ sudo ln -s /usr/bin/make gmake 6) install Paraview from dmg: we will use Paraview reader 7) Create a Casename-sensitive disk image (~10 GB, to be safe) and link it as above. Into the link image do a git checkout into it 8) cd ~/OpenFOAM/OpenFOAM-1.6-ext/etc ; cp prefs.sh-EXAMPLE prefs.sh 9) source the environment and compile all. You are in business! Hope you'll find this useful. Happy McFoaming, Hrv |
Hi Hrv, this is excellent!
I've tried the Binary release for Mac OS X on my Macbook (OS X 10.6.4). Your setup instructions work but: Every time I try to run a solver (my custom solvers as well as tutorials), I get the error message "Abort trap". The solvers compile without any problem but they don't run. |
A bit more info:
When I try sudo "solverName" I get a bit longer of an error message: dyld: Library not loaded: libPstream.dylib Referenced from: /Users/ben/OpenFOAM/ben-1.6-ext/applications/bin/darwinIntel64DPOpt/conjugateHeatFoam Reason: image not found Trace/BPT trap Although it says "image not found" my OpenFOAM-1.6-ext image is mounted. From the research that I've done, it might be a problem with DYLD_LIBRARY_PATH. When I type echo $DYLD_LIBRARY_PATH, this is what I get: Code:
/Users/ben/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/packages/scotch-5.1.10b/platforms/darwinIntel64DPOpt/lib: |
Heya,
Please make sure you've got an Intel Mac - I didn't do anything to support older PowerPC Macs. Benk: do you have the correct link in your home directory? Try: cd /Volumes/OpenFOAM-1.6-ext/src cd ~/OpenFOAM/OpenFOAM-1.6-ext/etc foamsrc which icoFoam All of this should report no errors. Re additional path in bold, I have no idea where it comes from - not one of mine. Also, do you have XCode installed? It is possible that it carries some non-standard libraries that FOAM relies on and it is on my machine. We have ~10 reported successes on this so please don't give up. I'd like to get to the bottom of this. Hrv |
Ben,
What does 'which gcc' give you? If you use Hrv's package, you have to make sure to compile apps with the Xcode gcc, which is at 4.2.1. If you have MacPorts installed with gcc 4.3, 4.4, or 4.5, you have to be careful, especially since etc/bashrc and etc/settings.sh set up some of the environment variables (e.g., WM_COMPILER) a bit differently than with 1.5-dev. Note: my first pass at this was to copy $FOAM_TUTORIALS to $FOAM_RUN, and then test a few of the standard tutorials. Then, I compiled simpleSRFFoam, which promptly failed at runtime due to the fact that my gcc-4.3-mp was being used in preference over /usr/bin/gcc (4.2.1). After modifying my .profile, and wclean, wmake, simpleSRFFoam compiles and tutorial runs fine. I suspect that this is your problem. Also, it is OK for the $FOAM_SITE_APPBIN and $FOAM_SITE_LIBBIN variables to point to non-existent directories. This is for site-specific libraries and applications that would be shared among a team or group. Eric Quote:
|
Quote:
This was my problem. At one point I installed macports gcc. which gcc gave: /opt/local/bin/gcc (I think normally it should be /usr/bin/gcc no?) gcc --version gave: gcc (GCC) 4.3.4 when I changed the version: gcc_select gcc42 gcc --version now gives: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5664) And my old 1.5-dev solver which uses the coupledFvScalarMatrix works in 1.6-ext! Thanks again! |
First of all, thanks for the Mac support. I really appreciate this :)
But I have a question about the rpm support. How have you installed that package? If I try to compile that from source, configure complains Code:
configure: error: missing required NSPR / NSS header Code:
./configure CPPFLAGS="-I/usr/local/include/nspr" I really don't like the solution to install rpm via port install, since there are so many dependencies, including an old python version. Is there a work around, or have you installed the rpm package and its dependencies via macports? Jens |
Hi,
Well done on the release. I am having trouble compiling OF-1.6-ext on my intel mac. I am running leopard - OS X 10.5.8. I am getting the following error when I try to compile the triSurface library: Code:
# wmake libso http://www.cfd-online.com/Forums/ope...tml#post183989 But there doesn't seem to be foamFlex in OF-1.5-dev or OF-1.6-ext, so I am unsure how to fix this... My current flex version is: flex version 2.5.4 Any ideas are welcome. Thanks, Philip |
Unfortunately I am not much of a help for solving your problem, but how did you install rpm? Via macports?
Jens |
Hi Jens,
I installed rpm using the dmg from here: http://rpm4darwin.sourceforge.net/. It is rpm version "rpm (RPM) 5.1.0". Philip |
Hi Hrv/Eric and all,
Thanks for the release. Similar problem to Ben K. Disk image mounted and linked, bashrc sourced (per Hrv's intructions). Changed the default gcc compiler: which gcc /usr/bin/gcc gcc --version i686-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5577) Ran Hrv's checks, all came back clean. When I try to run a tutorial I get the following: Quote:
Thanks, hope all is well. James |
Hrv,
How often do you plan to update this binary? Eric |
Sorry, I am working on-site with a client at the moment - and the Big Mac is out of reach.
The update is quite trivial to do but not script-automated yet. I'll do one by hand next Friday and then we'll ask one of the Script Wizzards in the community to automate it. I think once a week would be sufficient. Deal? Hrv |
Yeah, I've been pretty lazy building 1.6-ext on OSX (I have enough other machines to tend to), and have been using your dmg without issue.
However, I was thinking I should try to keep it more in sync with other installs that I'm using. Once a week would be more than adequate since there is not an easy way to automate the download and installation of the dmg. |
Hi Eric,
I have uploaded the dmg to the final version for 1.6-ext. It is available on: https://files.me.com/h.jasak/41tmca Let's find a way to share this through the -Extend forum. Hrv |
Hi Hrv,
Have you uploaded a new dmg for the latest revision to OpenFOAM-1.6-ext? Maryse Page mentioned to me that the ggi had been improved. -Bryan |
I can confirm that the procedure Hrv lists below for compiling works on Mac OS 10.6.8.
However, it is important the the rpm version is not newer than 5.1.0. I couldn't get the ThirdPary applications to compile with the newer (5.2.0 rpm). Also if you are using 10.6.8 there is a fix for compiling libccmio. See the hotfix/ThirdParty_scripts branch of the 1.6-ext git repo. Quote:
|
rpm 5.2.1 on Mac OS X is fine.
Martin Quote:
|
In case anybody is trying to use the binary version with Mac OS 10.7 (Lion) you'll need to install open MPI which I gather came with 10.6 but not 10.7.
The easy way (or at least what worked for me) is to just use homebrew (which is kindof like macports) to install open-mpi: To install homebrew: Code:
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" Code:
brew install open-mpi |
Hi,
I am trying to compile OpenFOAM-1.6-ext on Mac OS X Lion, but I am stuck at Allmake.stage3. The libccmio package gets an error saying System type i386-apple-darwin11.0.0 not supported!: Code:
This system rpm command: rpm Also I tried changing git branch to hotfix/ThirdParty_scripts (git checkout hotfix/ThirdParty_scripts) but I still get the same error. All suggestions are welcome, Philip |
All times are GMT -4. The time now is 03:37. |