# Installing Garfield++

**URL:** <https://root-forum.cern.ch/t/installing-garfield/52065>\
**Category:** Garfield++\
**Created:** [October 23, 2022, 10:26pm UTC](https://root-forum.cern.ch/t/installing-garfield/52065 "2022-10-23T22:26:35Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [October 25, 2022, 10:41am UTC](https://root-forum.cern.ch/t/installing-garfield/52065/4 "2022-10-25T10:41:37Z")

</div>

> [@Fatal error when trying to run the Gem example](https://root-forum.cern.ch/t/fatal-error-when-trying-to-run-the-gem-example/39995/7):
>
> Below, you can find simple instructions on how to build Garfield++ (with examples) from scratch. Try (in case of problems, inspect the three created “\*.out.txt” files): # ... assuming you are using a bash like shell ... source /full/path/to/your/root/bin/thisroot.sh # setup your ROOT export GARFIELD\_HOME=${PWD}/garfieldpp # where to build Garfield++ rm -rf ${GARFIELD\_HOME} # make sure you start with an empty directory git clone --depth=1 https://gitlab.cern.ch/garfield/garfieldpp.git ${GARFIEL…

BTW. The “`RootNewMacros.cmake`” error suggests that you try to use a ROOT “source code” distribution instead of its “(pre)compiled binaries”.

---

_[View the full topic](https://root-forum.cern.ch/t/installing-garfield/52065)._
