# Installation error on macOS

**URL:** <https://community.geodynamics.org/t/installation-error-on-macos/4012>\
**Category:** ASPECT\
**Tags:** installation\
**Created:** [March 21, 2025, 4:55pm UTC](https://community.geodynamics.org/t/installation-error-on-macos/4012 "2025-03-21T16:55:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hyunseong96](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@hyunseong96](https://community.geodynamics.org/u/hyunseong96)\
**Post date:** [March 21, 2025, 4:55pm UTC](https://community.geodynamics.org/t/installation-error-on-macos/4012/1 "2025-03-21T16:55:21Z")

</div>

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

```auto
./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:

```auto
./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

---

<div class="post-metadata">

**Author:** ![fgueyd](https://avatars.discourse-cdn.com/v4/letter/f/ecc23a/32.png) [@fgueyd](https://community.geodynamics.org/u/fgueyd)\
**Post date:** [March 21, 2025, 7:01pm UTC](https://community.geodynamics.org/t/installation-error-on-macos/4012/2 "2025-03-21T19:01:45Z")

</div>

> [@hyunseong96](#):
>
> 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](https://www.dealii.org/current_release/download/))  
=\> 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.](https://github.com/geodynamics/aspect.git)  
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

---

<div class="post-metadata">

**Author:** ![tjhei](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/tjhei/32/1163_2.png) [@tjhei](https://community.geodynamics.org/u/tjhei)\
**Post date:** [March 21, 2025, 8:46pm UTC](https://community.geodynamics.org/t/installation-error-on-macos/4012/3 "2025-03-21T20:46:19Z")

</div>

> [@hyunseong96](#):
>
> dealii requires opencascade

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

---

<div class="post-metadata">

**Author:** ![jbnaliboff](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jbnaliboff](https://community.geodynamics.org/u/jbnaliboff)\
**Post date:** [March 21, 2025, 9:16pm UTC](https://community.geodynamics.org/t/installation-error-on-macos/4012/4 "2025-03-21T21:16:55Z")

</div>

@hyunseong96 - Following on the suggestion from @tjhei, I recommend following the [ASPECT candi installation guide](https://aspect-documentation.readthedocs.io/en/latest/user/install/local-installation/using-candi.html), 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.

---

<div class="post-metadata">

**Author:** ![hyunseong96](https://avatars.discourse-cdn.com/v4/letter/h/3ab097/32.png) [@hyunseong96](https://community.geodynamics.org/u/hyunseong96)\
**Post date:** [March 24, 2025, 6:42pm UTC](https://community.geodynamics.org/t/installation-error-on-macos/4012/5 "2025-03-24T18:42:13Z")

</div>

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
