# Install ROOT/TMVA SOFIE

**URL:** <https://root-forum.cern.ch/t/install-root-tmva-sofie/48754>\
**Category:** Newbie\
**Tags:** root\
**Created:** [February 10, 2022, 9:09pm UTC](https://root-forum.cern.ch/t/install-root-tmva-sofie/48754 "2022-02-10T21:09:40Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![jarm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jarm/32/29361_2.png) [@jarm](https://root-forum.cern.ch/u/jarm)\
**Post date:** [April 6, 2022, 11:45am UTC](https://root-forum.cern.ch/t/install-root-tmva-sofie/48754/9 "2022-04-06T11:45:49Z")

</div>

I am also trying to build SOFIE on macOS Monterey 12.3 with Apple Silicon and experiencing issues.

> [@Installing ROOT 6.22.08 on Apple Silicon (arm64) AfterImage, FreeType issues and a linker error](https://root-forum.cern.ch/t/installing-root-6-22-08-on-apple-silicon-arm64-afterimage-freetype-issues-and-a-linker-error/44364):
>
> Has anyone had any luck with compiling ROOT on Apple M1? I am getting issues with AfterImage and FreeType, where basically the configure steps are failing because they don’t recognise arch=arm64. This is the error for AfterImage, and it is basically the same error when trying to build the builtin FreeType. I can’t not use the builtin freetype as it’s for some reason needed for building a Cocoa app. Similarly I can’t find an up to date libAfterImage anywhere. CMake Error at /Users/stuartwalke…

I am having the same issue as described here.

This is my build command:

```auto
cmake -DCMAKE_INSTALL_PREFIX=../root_install ../ -Dtmva-sofie=ON -Dtmva-pymva=On -DPython3_EXECUTABLE=/opt/homebrew/Caskroom/miniforge/base/envs/rootcern/bin/python

```

And similarly I get

```auto
[0%] Creating directories for 'FREETYPE'
[0%] Performing download step (verify and extract) for 'FREETYPE'
-- FREETYPE download command succeeded. See also /root_src/root_build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-download-*.log
[0%] No update step for 'FREETYPE'
[0%] No patch step for 'FREETYPE'
[0%] Performing configure step for 'FREETYPE'
CMake Error at /root_src/root_build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-configure-.cmake:49 (message):
  Command failed: 2

   './configure' '--prefix' '/root_src/root_build/FREETYPE-prefix' '--with-pic' '--disable-shared' '--with-png=no' '--with-bzip2=no' '--with-harfbuzz=no' 'CC=/opt/homebrew/Caskroom/miniforge/base/envs/rootcern/bin/arm64-apple-darwin20.0.0-clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' 'CFLAGS=-O'

  See also

    /root_src/root_build/FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-configure-*.log

make[2]: *** [FREETYPE-prefix/src/FREETYPE-stamp/FREETYPE-configure] Error 1
make[1]: *** [CMakeFiles/FREETYPE.dir/all] Error 2

```

And in the log file:

```auto
Invalid configuration `arm64-apple-darwin20.0.0': machine `arm64-apple' not recognized
configure: error: /bin/sh ./config.sub arm64-apple-darwin20.0.0 failed
make[3]: *** [setup] Error 1

```

Any ideas how to work around this?

I see the same issue reported here: [Build error on M1 Macbook (while building freetype): "Invalid configuration `arm64-apple-darwin20.5.0': machine `arm64-apple' not recognized" · Issue #20661 · matplotlib/matplotlib · GitHub](https://github.com/matplotlib/matplotlib/issues/20661)

Any tips appreciated!

Based on a chat with @sdwalker I tried `-Dbuiltin_freetype=OFF`, but this did not prevent ROOT from trying to build FreeType somehow.

---

_[View the full topic](https://root-forum.cern.ch/t/install-root-tmva-sofie/48754)._
