Dear all,
Following Wolfgang’s suggestion to use Mesquite for improving the mesh quality in my problem (see
I installed Trilinos on my laptop (Mac OS X Yosemite Version 10.10.5).
I had various problems with the installation of the most recent versions of Trilinos - I were not able to install Trilinos 12.6.2 or 12.6.3 with all the required packages for deal.ii, and for some reason Trilinos 12.6.1 does not include Mesquite. I ended up with installing Trilinos 12.4.2 and installing dealii 8.4.1 with it. Everything in the installation seemed to be fine, but when I run “make test”, all the tests failed. You may see the attached log file.
Does anybody have any idea how to fix this problem?
Thanks,
Oded
libmsqutil.12, i.e mesquite, is not loaded. In linux, you would need to add it to your LD_LIBRARY_PATH but I don't know how it works on Mac.
Best,
Bruno
Hi Denis,
Thank you very much for your suggestions. Unfortunately, none of your suggestions worked for me.
(i) I installed dealii binary package but it does not include Mesquite.
Is it possible to include Mesquite into dealii binary package?
(ii) I downloaded the most recent version of Spack (version 0.8.17), but its installation failed. You may see below the error message that I got:
==> Installing libelf
==> Trying to fetch from http://www.mr511.de/software/libelf-0.8.13.tar.gz
######################################################################## 100.0%
==> Staging archive: /Users/yaakobioy/spack/spack-0.8.17/var/spack/stage/lib...@0.8.13%g...@5.2.0=macosx_10.10_x86_64/libelf-0.8.13.tar.gz
==> Created stage in /Users/yaakobioy/spack/spack-0.8.17/var/spack/stage/lib...@0.8.13%g...@5.2.0=macosx_10.10_x86_64.
==> No patches needed for libelf.
==> Building libelf.
creating cache ./config.cache
checking whether make sets ${MAKE}... yes
checking for gcc... cc
checking whether the C compiler (cc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
==> Error: command './configure --prefix=/Users/yaakobioy/spack/spack-0.8.17/opt/macosx_10.10_x86_64/g...@5.2.0/lib...@0.8.13 --enable-shared --disable-dependency-tracking --disable-debug' returned error code 1
Do you know how to fix this problem?
I also tried to install previous versions of Spack (0.8.11, 0.8.15 and 0.8.16) and failed with each one of them, although with different error messages in each case.
(iii) I installed Homebrew, but it is not clear to me what should I do next. If the other two aforementioned routes are not possible, could you please advise me how to should use Homebrow?
Best,
Oded
==> Installing libelf
==> Trying to fetch from http://www.mr511.de/software/libelf-0.8.13.tar.gz
######################################################################## 100.0%
==> Staging archive: /Users/yaakobioy/spack/spack-develop_20-05-2016/var/spack/stage/libelf-0.8.13-zxsi3c75tqcmgck7r562bgi75svg7h3s/libelf-0.8.13.tar.gz
==> Created stage in /Users/yaakobioy/spack/spack-develop_20-05-2016/var/spack/stage/libelf-0.8.13-zxsi3c75tqcmgck7r562bgi75svg7h3s
==> No patches needed for libelf
==> Building libelf
==> Error: Command exited with status 1:
'./configure' '--prefix=/Users/yaakobioy/spack/spack-develop_20-05-2016/opt/spack/darwin-x86_64/gcc-5.2.0/libelf-0.8.13-zxsi3c75tqcmgck7r562bgi75svg7h3s' '--enable-shared' '--disable-dependency-tracking' '--disable-debug'
See build log for details:
/private/var/folders/pr/4tmsr5x51vs5f2bt2gqscp9hv0l_l7/T/yaakobioy/spack-stage/spack-stage-YhBV13/libelf-0.8.13/spack-build.out
/Users/yaakobioy/spack/spack-develop_20-05-2016/var/spack/repos/builtin/packages/libelf/package.py:45, in install:
41 def install(self, spec, prefix):
42 configure("--prefix=" + prefix,
43 "--enable-shared",
44 "--disable-dependency-tracking",
>> 45 "--disable-debug")
46 make()
47
48 # The mkdir commands in libelf's install can fail in parallel
49 make("install", parallel=False)
==> Error: Installation process had nonzero exit code.
Best,
Oded
(i) I installed dealii binary package but it does not include Mesquite.
Is it possible to include Mesquite into dealii binary package?
(ii) I downloaded the most recent version of Spack (version 0.8.17), but its installation failed.
You may see below the error message that I got:
==> Installing libelf
==> Trying to fetch from http://www.mr511.de/software/libelf-0.8.13.tar.gz
######################################################################## 100.0%
==> Staging archive: /Users/yaakobioy/spack/spack-0.8.17/var/spack/stage/libelf@0.8.13%g...@5.2.0=macosx_10.10_x86_64/libelf-0.8.13.tar.gz
==> Created stage in /Users/yaakobioy/spack/spack-0.8.17/var/spack/stage/libelf@0.8.13%g...@5.2.0=macosx_10.10_x86_64.
==> No patches needed for libelf.
==> Building libelf.
creating cache ./config.cache
checking whether make sets ${MAKE}... yes
checking for gcc... cc
checking whether the C compiler (cc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
==> Error: command './configure --prefix=/Users/yaakobioy/spack/spack-0.8.17/opt/macosx_10.10_x86_64/g...@5.2.0/libelf@0.8.13 --enable-shared --disable-dependency-tracking --disable-debug' returned error code 1
Do you know how to fix this problem?
Hi Denis,
Thank you for your detailed response.
It tried the master branch of spack but it didn’t work either, giving similar error messages (see also the attached file):
==> Installing libelf
==> Trying to fetch from http://www.mr511.de/software/libelf-0.8.13.tar.gz
######################################################################## 100.0%
==> Staging archive: /Users/yaakobioy/spack/spack-master_20-05-2016/var/spack/stage/libelf-0.8.13-2lwz26yxoxecb2lwuwhaj7wwlvziuozz/libelf-0.8.13.tar.gz
==> Created stage in /Users/yaakobioy/spack/spack-master_20-05-2016/var/spack/stage/libelf-0.8.13-2lwz26yxoxecb2lwuwhaj7wwlvziuozz
==> No patches needed for libelf
==> Building libelf
==> Error: Command exited with status 1:
'./configure' '--prefix=/Users/yaakobioy/spack/spack-master_20-05-2016/opt/spack/darwin-x86_64/gcc-5.2.0/libelf-0.8.13-2lwz26yxoxecb2lwuwhaj7wwlvziuozz' '--enable-shared' '--disable-dependency-tracking' '--disable-debug'
See build log for details:
/private/var/folders/pr/4tmsr5x51vs5f2bt2gqscp9hv0l_l7/T/yaakobioy/spack-stage/spack-stage-vi8kK8/libelf-0.8.13/spack-build.out
/Users/yaakobioy/spack/spack-master_20-05-2016/var/spack/repos/builtin/packages/libelf/package.py:45, in install:
41 def install(self, spec, prefix):
42 configure("--prefix=" + prefix,
43 "--enable-shared",
44 "--disable-dependency-tracking",
>> 45 "--disable-debug")
46 make()
47
48 # The mkdir commands in libelf's install can fail in parallel
49 make("install", parallel=False)
==> Error: Installation process had nonzero exit code.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I followed your instructions about Xcode (which I already installed before), but encountered a problem also in this direction. You may see the history of my commands:
[ yaakobioy L02029080 ~/spack/spack-master_20-05-2016/bin ]$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
[ yaakobioy L02029080 ~/spack/spack-master_20-05-2016/bin ]$ cd ~/.spack/
[ yaakobioy L02029080 ~/.spack ]$ ls
compilers.yaml
[ yaakobioy L02029080 ~/.spack ]$ rm compilers.yaml
remove compilers.yaml? y
[ yaakobioy L02029080 ~/.spack ]$ ls
[ yaakobioy L02029080 ~/.spack ]$ SPACK_ROOT=/path/to/spack
[ yaakobioy L02029080 ~/.spack ]$ export PATH=$SPACK_ROOT/bin:$PATH
[ yaakobioy L02029080 ~/.spack ]$ spack install g...@5.3.0
-bash: spack: command not found
Best,
Oded
Hi Denis,
I tried to follow your instructions but got an error message.
(0) (0) add the following to ~/.bash_profile (DO NOT RUN IN TERMINAL)
I didn’t find the file “.bash_profile” at “~/” directory. You may see the files that are there:
[ yaakobioy L02029080 ~ ]$ ls -a
. .anyconnect .profile Desktop Movies dealii
.. .bash_history .rstudio-desktop Development Music spack
.CFUserTextEncoding .bashrc .spack Documents Pictures workspace
.DS_Store .config .spackconfig Downloads Public
.RData .cups .ssh Doxygen TriBITS
.Rhistory .eclipse .subversion GCC Trilinos
.Trash .lldb Applications Library boost_1_56_0
.account .p2 CPPUnit Mesquite config_aux
I guess that you referred to the file “.profile”.
################################################################
```
SPACK_ROOT=/path/to/spack
export PATH=$SPACK_ROOT/bin:$PATH
```
I added these two lines to the file “.profile”. The content of the modified file is:
export PATH=/Applications/CMake.app/Contents/bin:$PATH
export DEAL_II_CONF_SILENT=ON
. /Applications/deal.II.app/Contents/Resources/share/deal.II/dealii.conf
export PATH=/Applications/CMake.app/Contents/bin:$PATH
SPACK_ROOT=/Users/yaakobioy/spack/spack-master_20-05-2016/
export PATH=$SPACK_ROOT/bin:$PATH
################################################################
Run new terminal window and install GCC and environment-modules package:
(1)
```
spack install g...@5.3.0
I run this command and got the following error message:
[ yaakobioy L02029080 ~/spack/spack-master_20-05-2016/bin ]$ spack install g...@5.3.0
==> Installing gcc
==> Installing gmp
==> Installing m4
==> Installing libsigsegv
==> Already downloaded /Users/yaakobioy/spack/spack-master_20-05-2016/var/spack/stage/libsigsegv-2.10-h43d2fuzsdysa2ctr3qsxpk55etk4dzv/libsigsegv-2.10.tar.gz
==> Already staged libsigsegv-2.10-h43d2fuzsdysa2ctr3qsxpk55etk4dzv in /Users/yaakobioy/spack/spack-master_20-05-2016/var/spack/stage/libsigsegv-2.10-h43d2fuzsdysa2ctr3qsxpk55etk4dzv
==> No patches needed for libsigsegv
==> Building libsigsegv
==> Error: Command exited with status 77:
'./configure' '--prefix=/Users/yaakobioy/spack/spack-master_20-05-2016/opt/spack/darwin-x86_64/gcc-5.2.0/libsigsegv-2.10-h43d2fuzsdysa2ctr3qsxpk55etk4dzv' '--enable-shared'
See build log for details:
/private/var/folders/pr/4tmsr5x51vs5f2bt2gqscp9hv0l_l7/T/yaakobioy/spack-stage/spack-stage-acoxgL/libsigsegv-2.10/spack-build.out
/Users/yaakobioy/spack/spack-master_20-05-2016/var/spack/repos/builtin/packages/libsigsegv/package.py:36, in install:
34 def install(self, spec, prefix):
35 configure('--prefix=%s' % prefix,
>> 36 '--enable-shared')
37
38 make()
39 make("install")
==> Error: Installation process had nonzero exit code.
################################################################
The content of the resulting spack-build.out file is:
==> './configure' '--prefix=/Users/yaakobioy/spack/spack-master_20-05-2016/opt/spack/darwin-x86_64/gcc-5.2.0/libsigsegv-2.10-h43d2fuzsdysa2ctr3qsxpk55etk4dzv' '--enable-shared' Build Tools: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... build-aux/install-sh -c -d checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking for gcc... /Users/yaakobioy/spack/spack-master_20-05-2016/lib/spack/env/gcc/gcc checking whether the C compiler works... no configure: error: in `/private/var/folders/pr/4tmsr5x51vs5f2bt2gqscp9hv0l_l7/T/yaakobioy/spack-stage/spack-stage-acoxgL/libsigsegv-2.10': configure: error: C compiler cannot create executables See `config.log' for more details
################################################################
Do you have any suggestions what do to next?
Best,
Oded
compilers:
darwin-x86_64:
cl...@7.3.0-apple:
cc: /usr/bin/clang
cxx: /usr/bin/clang++
f77: null
fc: null
g...@4.2.1:
cc: /usr/bin/gcc
cxx: /usr/bin/g++
f77: null
fc: null
Hi Luca,
I appreciate very much the help of you, Denis and Bruno!
I spent some time today trying to follow your guidelines, but still weren’t able to figure everything out. I need some more time to work on that, since I am not sure that I completely understand all the steps that I should take. I will let you know in the next days what is the status of things.
Best,
Oded
Hi Luca,
I am happy to let you know that I was able to install successfully the brew-based package using its source code. My application seems to run properly with this Mesquite-supported deal-ii installation.
Thank you very much for your help!
Oded