brew install gcc --without-multilibbrew install openmpi --c++11git clone https://github.com/davydden/homebrew-science.git $(brew --repository)/Library/Taps/davydden/homebrew-sciencebrew update # that will create symlinks to formulas by Tapping custom repobrew install scalapackbrew install mumpsbrew install metisbrew install parmetis#brew install hyprebrew install superlu_distbrew install petsc --with-superlu_dist --with-metis --with-parmetis --with-scalapack --with-mumps --complexbrew install arpack --with-mpibrew install slepc --with-arpackbrew install netcdfbrew install trilinos --with-boost --with-netcdf --without-tests --remove-warnings --with-release --with-fortranbrew install hdf5 --enable-parallelbrew install p4estbrew install gsl
Hi,thank you. Just a question.One doesn't need to specify that one wants deal.ii with mpi? On the rest of the brew you are mentioning parallel
Just an update,Trying to use the brew you have made for deal.ii 8.1 produces an error which says there is no CMakeFile.I'll try to modify what you made.
The important location is that of deal.IIConfig.cmake. It determines
DEAL_II_PATH from its location and the value of
DEAL_II_PROJECT_CONFIG_RELDIR.
Afterwards, the macros are assumed to be located at
${DEAL_II_PATH}/${DEAL_II_CMAKE_MACROS_RELDIR}.
The RELDIR variables can be overridden at configure time to suit almost
any installation layout.
Have a lookt at ./doc/users/cmake.html and ./doc/users/config.sample
Thanks for your reply, Matthias.I think I face a bit different problem.The point is, that the installation directory of the deal.II is one thing (e.g. /usr/local/Cellar/dealii/8.2-devel)but after it is installed, Homebrew creates symlinks/usr/local/lib/libdeal_II.8.2.pre.dylib/usr/local/lib/cmake/deal.II (that's where deal.IIConfig.cmake is located)/usr/local/include/deal.IIso the deal.II path is found to be "DEAL_II_PATH=/usr/local".And of course, the combination of that with DEAL_II_CMAKE_MACROS_RELDIR "cmake/macros"does play good, as the proper location of macros are /usr/local/Cellar/dealii/8.2-devel/cmake/macros.So, in a sense, I would like to keep macros installed where they are by default ("PREFIX/cmake/macros")but only help CMake to find them when configuring my own project with deal.II.
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/tl7uZ1Exw5o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
| git clone https://github.com/davydden/homebrew-science.git --branch dealii_suite $(brew –repository)/Library/Taps/davydden/homebrew-science |
Zeus:build Zeus$ pwd
/Users/Zeus/Google/code/dealii/dealii-8.2.0/build
Zeus:build Zeus$ cmake -DCMAKE_INSTALL_PREFIX=/Users/Zeus/bin/dealii-8.2.0/ ..
-- This is CMake 2.8.12.2
--
-- Setting up cached variables.
-- The CXX compiler identification is GNU 4.8.2
-- The C compiler identification is GNU 4.8.2
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /opt/local/bin/c++
-- Check for working CXX compiler: /opt/local/bin/c++ -- worksZeus:build Zeus$ cmake -DDEAL_II_INSTALL_PREFIX=/Users/Zeus/bin/dealii-8.2.0/ ..
-- This is CMake 2.8.12.2
--
-- Setting up cached variables.
--
-- Setting up default compiler flags.
--
-- Include /Users/Zeus/Google/code/dealii/dealii-8.2.0/bundled/setup_bundled.cmake
--
-- Include /Users/Zeus/Google/code/dealii/dealii-8.2.0/cmake/checks/check_01_compiler_features.cmake
--
-- Include /Users/Zeus/Google/code/dealii/dealii-8.2.0/cmake/checks/check_01_cpu_features.cmake
--
...which later reported
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:
DEAL_II_INSTALL_PREFIX
-- Build files have been written to: /Users/Zeus/Google/code/dealii/dealii-8.2.0/build
Zeus:build Zeus$In file included from /Users/Zeus/Google/code/dealii/dealii-8.2.0/include/deal.II/grid/tria.h:24:0,
from /Users/Zeus/Google/code/dealii/dealii-8.2.0/source/grid/grid_tools.cc:18:
/Users/Zeus/Google/code/dealii/dealii-8.2.0/include/deal.II/base/geometry_info.h: In instantiation of 'static void dealii::GeometryInfo<dim>::alternating_form_at_vertices(const dealii::Point<spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell], dealii::Tensor<(spacedim - dim), spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell]) [with int spacedim = 1; int dim = 1]':
/Users/Zeus/Google/code/dealii/dealii-8.2.0/source/grid/grid_tools.cc:1811:9: required from here
/Users/Zeus/Google/code/dealii/dealii-8.2.0/include/deal.II/base/geometry_info.h:1860:3:
error: size of array is not an integral constant-expression
alternating_form_at_vertices
^
/Users/Zeus/Google/code/dealii/dealii-8.2.0/include/deal.II/base/geometry_info.h:1860:3: error: size of array is not an integral constant-expression
/Users/Zeus/Google/code/dealii/dealii-8.2.0/include/deal.II/base/geometry_info.h: In instantiation of 'static void dealii::GeometryInfo<dim>::alternating_form_at_vertices(const dealii::Point<spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell], dealii::Tensor<(spacedim - dim), spacedim> (&)[dealii::GeometryInfo<dim>::vertices_per_cell]) [with int spacedim = 2; int dim = 2]':Warning: You have MacPorts or Fink installed:
/opt/local/bin/port
This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.
Zeus:~ Zeus$ sudo mv /opt/local/ ~/macports
Password:
Zeus:~ Zeus$ brew doctor
Your system is ready to brew.
Zeus:build Zeus$ cmake -DCMAKE_INSTALL_PREFIX=/Users/Zeus/bin/dealii-8.2.0/ ..
-- This is CMake 3.0.2
--
-- Setting up cached variables.
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:86 (PROJECT):
The CMAKE_CXX_COMPILER:
/opt/local/bin/c++
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:86 (PROJECT):
The CMAKE_C_COMPILER:
/opt/local/bin/gcc
Zeus:build Zeus$ pwd
/Users/Zeus/Google/code/dealii/dealii-8.2.0/build
Zeus:build Zeus$ rm CMakeCache.txt
Zeus:build Zeus$ rm -r CMakeFiles/
Zeus:build Zeus$ cmake -DCMAKE_INSTALL_PREFIX=/Users/Zeus/bin/dealii-8.2.0/ ..
-- This is CMake 3.0.2
--
-- Setting up cached variables.
-- The CXX compiler identification is AppleClang 6.0.0.6000056
-- The C compiler identification is AppleClang 6.0.0.6000056
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- worksSince I am (eventually) interested in coding up some contact algorithms that I developed for my Ph.D., I definitely want to have the ability to compile locally, not just run a prebuilt binary.
brew install cmake
brew install openmpi --c++11
brew install boost --c++11
brew install gsl
brew install scalapack
brew install mumps
brew install metis
brew install parmetis
brew install hypre --with-mpi
brew install superlu43
brew install superlu_dist
brew install arpack --with-mpi --without-check
brew install hdf5 --with-mpi --c++11
brew install netcdf --with-fortran --with-cxx-compat
brew install suite-sparse
brew install hwloc
brew install sundials --with-mpi
brew install fftw --with-mpi --with-fortran
brew install petsc
brew install slepc
brew install p4est
brew install adol-c
brew install cppunit
brew install doxygen --with-graphviz
brew install glpk
brew install glm
brew install trilinos
brew install dealiiclang: warning: cannot compress debug sections (zlib not installed)
warning: unknown warning option '-Wno-long-double'; did you mean '-Wno-long-long'?
[-Wunknown-warning-option]
1 warning generated.
make[3]: *** No rule to make target `/usr/local/lib/libmpi_usempi_ignore_tkr.a', needed by `step-3'. Stop.
I checked the file in my mac and I only found "libmpi_usempi_ignore_tkr.dylib" instead of "libmpi_usempi_ignore_tkr.a".
Dear all,as I updated to OS-X Yosemite this weekend,I was motivated to try some other solution forpackage management.I was using MacPorts to compile GCC before.This time I tried Homebrew http://brew.sh.I found it quite nice that all "recipes" (Formulas) tobuild are easy to read (ruby) and one can modifythem to suit one's needs.I updated a couple of existing Formulas as wellas added some more to compile the whole deal.II suite.They are all on the GitHub fork of homebrew-scienceInstalling the complete deal.II suite from scratch is something like:
brew install gcc --without-multilibbrew install openmpi --c++11git clone https://github.com/davydden/homebrew-science.git $(brew --repository)/Library/Taps/davydden/homebrew-science
brew update # that will create symlinks to formulas by Tapping custom repobrew install scalapack
brew install mumpsbrew install metisbrew install parmetis
#brew install hyprebrew install superlu_distbrew install petsc --with-superlu_dist --with-metis --with-parmetis --with-scalapack --with-mumps --complexbrew install arpack --with-mpibrew install slepc --with-arpackbrew install netcdfbrew install trilinos --with-boost --with-netcdf --without-tests --remove-warnings --with-release --with-fortranbrew install hdf5 --enable-parallel
brew install p4estbrew install gsl
brew install dealiinote that I did not try "hypre" as I used complex-valued petsc.I also tested dealii "Formula" with --devel flag, which is linked to my localdealii's fork. You can modify it to your liking.Apart from that, it worked for me onOS X Yosemite 10.10 and Xcode 6.1 (important!).Deal.ii found all the libs but NETCDF.Regards,Denis.
Hi Denis,
Thanks. I checked the path you mentioned but unfortunately I could not find any dealii folder under the ~/Library/Logs/Homebrew.
I followed the instruction to install the deal.ii on a brand new mac yesterday. I remember I got a warning like the openmpi dependency of gcc was built with a different c++ library.
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to a topic in the Google Groups "deal.II User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dealii/tl7uZ1Exw5o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dealii+un...@googlegroups.com.
clang: warning: cannot compress debug sections (zlib not installed)
warning: unknown warning option '-Wno-long-double'; did you mean '-Wno-long-long'?
[-Wunknown-warning-option]
1 warning generated.
On 21 Jan 2016, at 20:40, Li Fan <fanl...@gmail.com> wrote:Thanks. For the clang zlib warning, I found this:But I still don't know how to fix it.