Hi Matthew, Thank you for the response.
I think I may have actually found an easier way to do this - using homebrew, follow the current installation instructions, except that hdf5 should be installed with parallel support, if needed (brew install --enable-parallel homebrew/science/hdf5), which will bring in OpenMPI. You also must install pkg-config (brew install pkg-config), since the one of the configure scripts requires it, but it's not explicitly stated as a dependency on the wiki. Libctl, harminv, and MPB can be installed in the normal fashion. To install meep, I went to /usr/local/share/openmpi/mpic++-wrapper-data.txt and changed the compiler from the system default (clang++) to g++-4.9 (installed by homebrew). This has to be done before running the meep configure script. Once that was done, I was able to build and link without issue. If I hadn't been using MPI, I could have accomplished the same thing by giving the configure script CXX=g++-4.9, I think. As you said, the symmetry test is failing due to a small numerical error, but 2D_convergance passes for me. Tom On Wed, Sep 10, 2014 at 1:08 PM, Matthew Lewis < matthew.le...@utsouthwestern.edu> wrote: > In reference to recent posts..... this works..... > good luck > > > Strategy: > > a) use recipe similar to old Macport installation > > ( > http://ab-initio.mit.edu/wiki/index.php?title=Meep_Installation&oldid=4741 > ) > > b) when available, use +gcc48 to compile with Gnu toolchain > > c) otherwise, see if Apple Clang will compile > > > > > 1. OSX 10.9.4 > > 2. install Xcode 5.1.1 (open and close) > > 3. open Terminal > > 4. sudo xcodebuild -license (don’t forget to type ‘agree’) > > 5. sudo xcode-select --install (install command line tools) > > 6. close Terminal > > 7. install XQuartz (optional) > > 8. install Macports > > 9. open Terminal > > 10. sudo port -v selfupdate (fix proxy settings if fails) > > 11. sudo port -v install atlas +gcc48 > > (we are going to use gcc 4.8 toolchain where possible. using this > variant will ensure that it gets added automatically by macports) > > 12. sudo port -v install guile > > (guile16 will not build, so use latest guile port - see Note 1 below) > > 13. sudo port -v install hdf5 +gcc48 > > (hdf5-18 is deprecated) > > 14. Download old Portfile for last libpng 1.4 version to your Downloads > folder > > > https://trac.macports.org/browser/trunk/dports/graphics/libpng/Portfile?rev=96302 > > cp Downloads/Portfile /tmp; cd /tmp; sudo port -v install > > (current libpng 1.6 port will build, but there are changes in library > that cause errors downstream) > > 15. sudo port -v install fftw-3 +gcc48 > > 16. you DO NOT need to make the symbolic links for guile16 since we are > using guile > > 17. download harminv source > > ./configure --prefix=$HOME F77=gfortran-mp-4.8 > > make > > make install > > 18. download libctl source > > ./configure --prefix=$HOME F77=gfortran-mp-4.8 > > make > > make install > > 19. download h5utils source > > ./configure CPPFLAGS=”-I/opt/local/include” LDFLAGS=”-L/opt/local/lib” > --prefix=$HOME > > make > > make install > > 20. edit .profile > > export PATH=”$HOME/bin:$PATH” > > close and reopen Terminal > > 22. download meep source > > ./configure CPPFLAGS=”-I/opt/local/include -I$HOME/include” > LDFLAGS=”-L/opt/local/lib -L$HOME/lib” --with-libctl=$HOME/share/libctl > --prefix=$HOME F77=gfortran-mp-4.8 > > make (if it tries to use Xcode tool chain linker, see Note 2 below) > > make install > > 23. edit .profile > > export DYLD_FALLBACK_LIBRARY_PATH=”/opt/local/lib:$HOME/lib” > > close and reopen Terminal > > 24. run tests > > make check > > everything looks good……. > > symmetry always fails unless you change tolerance in source code > > run test/symmetry and you will see it’s a small numerical error > > not sure why 2D convergence is failing…. perhaps someone can tell us... > > Note 1: > > guile16 will not build with Apple clang from Xcode 5.1.1 > > guile16 will ‘almost’ build with gcc48 > > sudo port -v install guile16 configure.compiler=macports-gcc-4.8 > > library appears to compile, but there is a fatal port error when building > the documentation (snarfing error) > > Note 2: > > if you notice that the linker in /Applications/Xcode.app is being called, > install gmake port and use gmake instead of make > > sudo port -v install gmake > > > ------------------------------ > > UT Southwestern Medical Center > The future of medicine, today. > > _______________________________________________ > meep-discuss mailing list > meep-discuss@ab-initio.mit.edu > http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss >
_______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss