Homebrew installation on Mac

Discussion about building and installing Elmer
Post Reply
kataja
Posts: 74
Joined: 09 May 2014, 16:06
Antispam: Yes

Homebrew installation on Mac

Post by kataja » 26 Jun 2015, 12:21

Hello,

there is now available a homebrew tap for installing Elmer in OSX.

Run

Code: Select all

$ brew tap elmercsc/homebrew-elmerfem
$ brew install elmer --HEAD
in terminal to install latest elmer version. For release 8.0 installation, drop the "--HEAD" option.

For more installation options run

Code: Select all

 $ brew info elmer 
Note that this will compile elmer from scratch so it might take a while.

Cheers,
Juhani

drone50
Posts: 4
Joined: 09 Jul 2015, 15:58
Antispam: Yes

Re: Homebrew installation on Mac

Post by drone50 » 20 Jul 2015, 18:43

Unfortunately, I was faild to install elmer by using your suggestions. plz check my log.



==> Installing elmer from elmercsc/homebrew-elmerfem
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Building with an alternative Fortran compiler
This is unsupported.
Warning: No Fortran optimization information was provided. You may want to consider
setting FCFLAGS and FFLAGS or pass the `--default-fortran-flags` option to
`brew install` if your compiler is compatible with GCC.

If you like the default optimization level of your compiler, ignore this
warning.
==> Building with an alternative Fortran compiler
This is unsupported.
Warning: No Fortran optimization information was provided. You may want to consider
setting FCFLAGS and FFLAGS or pass the `--default-fortran-flags` option to
`brew install` if your compiler is compatible with GCC.

If you like the default optimization level of your compiler, ignore this
warning.
==> Building with an alternative Fortran compiler
This is unsupported.
Warning: No Fortran optimization information was provided. You may want to consider
setting FCFLAGS and FFLAGS or pass the `--default-fortran-flags` option to
`brew install` if your compiler is compatible with GCC.

If you like the default optimization level of your compiler, ignore this
warning.
==> Building with an alternative Fortran compiler
This is unsupported.
Warning: No Fortran optimization information was provided. You may want to consider
setting FCFLAGS and FFLAGS or pass the `--default-fortran-flags` option to
`brew install` if your compiler is compatible with GCC.

If you like the default optimization level of your compiler, ignore this
warning.
==> Building with an alternative Fortran compiler
This is unsupported.
Warning: No Fortran optimization information was provided. You may want to consider
setting FCFLAGS and FFLAGS or pass the `--default-fortran-flags` option to
`brew install` if your compiler is compatible with GCC.

If you like the default optimization level of your compiler, ignore this
warning.
==> Cloning https://github.com/ElmerCSC/elmerfem.git
Updating /Library/Caches/Homebrew/elmer--git
==> Checking out branch devel
==> cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/elmer/HEAD -DWITH_Hypre:BOOL=TRUE -DWITH_Mump
==> make
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libumfpack.a(umf_zi_dump.c.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libumfpack.a(umf_zl_dump.c.o) has no symbols
/usr/local/Cellar/cmake/3.2.3/bin/cmake -E cmake_progress_report /tmp/elmer20150721-1416-t5ctya/build/CMakeFiles 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
[ 74%] Built target umfpack
make: *** [all] Error 2

READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/elmercsc/homebrew-elmerfem/issues

foadsf
Posts: 13
Joined: 20 Sep 2016, 23:56
Antispam: Yes

Re: Homebrew installation on Mac

Post by foadsf » 13 Jul 2018, 01:20

As explained here and here there are two different methods for installing elmer on macOS using HomeBrew:

Method 1:
  • brew tap brewsci/science
  • brew install mumps
  • if that didn't work, download mumps.rb from here
  • brew install ./mumps.rb
  • brew tap elmercsc/homebrew-elmerfem
  • brew install elmer --HEAD --with-elmergui
Method 2:
  • brew tap dpo/openblas
  • brew install mumps
  • brew tap elmercsc/homebrew-elmerfem
  • brew edit elmer
  • comment the depends_on "scalapack" line out
  • brew install elmer --HEAD --with-elmergui

ajpina
Posts: 4
Joined: 22 Mar 2018, 01:15
Antispam: Yes

Re: Homebrew installation on Mac

Post by ajpina » 06 Apr 2019, 17:48

Hi,
Method 2 worked for me when upgrading to v8.4. So no issues during installation, ElmerGUI, ElmerGrid and ElmerSolver ran okay.
However, I noticed that ElmerSolver started throwing SIGSEGV with models that I solved with previous versions.
So I ran ctest -L quick and realized that only 82% of tests passed, please see the log attached [Test_Elmer.txt].
Then I noticed that elmer was build with clang rather than gcc, So I tried building with gcc-8 and running ctest again, the results are in [Test_Elmer3.txt].

In summary, even though the installation is successful, the solver is not stable.

Last try was building elmer without hypre, mumps, open-mpi. This time ElmerSolver passed all the tests.

Could anybody point out to what the issue is? Apparently, there is an issue with the dependencies that is not caught during compilation and installation.

Looking forward to getting any advise.
Thanks,
Alejandro
Attachments
Tests_Elmer.txt
(32.63 KiB) Downloaded 42 times
Tests_Elmer3.txt
(32.41 KiB) Downloaded 40 times

foadsf
Posts: 13
Joined: 20 Sep 2016, 23:56
Antispam: Yes

Re: Homebrew installation on Mac

Post by foadsf » 28 Aug 2019, 23:15

I tried upgrading my HomeBrew packages and now Elmer fails to upgrade returning this error:
==> Reinstalling 2 broken dependents from source:
elmercsc/elmerfem/elmer, mumps
Error: No available formula with the name "scotch" (dependency of elmercsc/elmerfem/elmer)
I would appreciate if you could help me know what is the problem and how it should be solved?

raback
Site Admin
Posts: 3464
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Homebrew installation on Mac

Post by raback » 18 Sep 2019, 16:08

Hi,

Sorry for late reply. Scotch is a dependency of MUMPS. Do you need MUMPS? If not you could edit

https://github.com/ElmerCSC/homebrew-el ... r/elmer.rb

and set there (line 40 or so)

Code: Select all

-DWITH_Mumps:BOOL=FALSE
The problem with Mac is that nobody in ElmerTeam uses it and homobrew is not terribly stable either.

If some Mac user would sort out the problems with MUMPS we would of course be very happy.

-Peter

Post Reply