Installation error on macOS

Hi hope you are doing well!

I have been trying to install newer version of aspect and dealii on iMac M3, Sequoia 15.3.2.
However, I find two points that is apart from installation guide.
when I tried to install deal with

./candi.sh -j 8 --packages="astyle hdf5 netcdf sundials p4est trilinos dealii"

Trilinos seems to require openblas and parmetis so it can be installed without an error.
and dealii requires opencascade because I have this error

Could not find the opencascade library!

Please ensure that a suitable opencascade library is installed on your
computer.

Then after having those packages, cloning ASEPCT, cmake and make, finishing installation of ASPECT, I face new error that I haven’t seen so far. after running ASPECT:

./aspect

dyld[36284]: Library not loaded: libTKBO.11.dylib
Referenced from: /Users/h.kim.6/aspect/build/aspect-debug
Reason: tried: ‘/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘libTKBO.11.dylib’ (no such file), ‘/System/Volumes/Preboot/Cryptexes/OSlibTKBO.11.dylib’ (no such file), ‘libTKBO.11.dylib’ (no such file), ‘/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/dealii-candi/parmetis-4.0.3/lib/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/aspect/build/libTKBO.11.dylib’ (no such file), ‘/System/Volumes/Preboot/Cryptexes/OS/Users/h.kim.6/aspect/build/libTKBO.11.dylib’ (no such file), ‘/Users/h.kim.6/aspect/build/libTKBO.11.dylib’ (no such file)
zsh: abort ./aspect

Could I get a help how I can solve this?

Cheers,
Hyunseong

Personally, when installing Aspect on Mac OS (with Apple ARM), I am using the following method
1/ Install Deal II with Mac OS package (dmg installer on DealII website, you can find it in the middle of this webpage Downloads - The deal.II Finite Element Library)
=> this allows a proper installation of DealII with all the dependencies

NB: I used three years ago candi installation procedure, but since then I never succeeded again.

2/ Open Deal II/ this will open a terminal in which you can simply follow the installation procedure of Aspect

git clone GitHub - geodynamics/aspect: A parallel, extensible finite element code to simulate convection in both 2D and 3D models.
mkdir build; cd build; cmake ..
cmake ..

make

Of course, you will need to run aspect in a dealII terminal

Hope it will help
Cheers
Frédéric

1 Like

That is not correct. Skip opencascade and the library not loaded error should go away.

@hyunseong96 - Following on the suggestion from @tjhei, I recommend following the ASPECT candi installation guide, which outlines how to use an ASPECT-specific candi file (local.cfg) for the installation.

This should hopefully work (and inherently skip opencascade).

as @fgueyd noted, using the provided deal.II dmg for macs should work, as long as one is available for version of Mac OSX and related dependencies.

Hi @jbnaliboff @tjhei ,

Sorry I don’t know much about building environment for software.
I haven’t included opencascade to package install option in candi.cfg, but this error just came up.

I used local.cfg and I installed packages except dealii v9.5.2. I had make error 2 there somehow.
Instead, I used candi.cfg allowing packages in local.cfg and installed dealii v9.6.1
now aspect works without an error that I showed earlier.
Thanks!

Cheers,
Hyunseong