# Install Root on Mac OS Mojave

**URL:** <https://root-forum.cern.ch/t/install-root-on-mac-os-mojave/31708>\
**Category:** Newbie\
**Created:** [November 21, 2018, 2:20pm UTC](https://root-forum.cern.ch/t/install-root-on-mac-os-mojave/31708 "2018-11-21T14:20:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elt0212](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/5f9b8f/32.png) [@elt0212](https://root-forum.cern.ch/u/elt0212)\
**Post date:** [November 21, 2018, 2:20pm UTC](https://root-forum.cern.ch/t/install-root-on-mac-os-mojave/31708/1 "2018-11-21T14:20:40Z")

</div>

Hello everyone,  
I am new to root and have tried to install it on my Mac using the Readme file following the steps below:

## Building

Clone the repo

```
$ git clone https://github.com/root-project/root.git

```

Make a directory for building

```
$ mkdir build
$ cd build

```

Run cmake and make

```
$ cmake ../root
$ make -j8

```

Setup and run ROOT

```
$ source bin/thisroot.sh
$ root

```

when this first completed, I typed to root command at the bottom and it opened up root in terminal. however, I came back to work on this a few days later and now I cant seem to open or access root. I have tried going to the root folder in terminal and tried typing root but nothing happens. I was wondering if anybody has any advice or if I have missed something?  
any help would be very much appreciated.

thank you!

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [November 21, 2018, 2:26pm UTC](https://root-forum.cern.ch/t/install-root-on-mac-os-mojave/31708/2 "2018-11-21T14:26:16Z")

</div>

You should put the command

```auto
source where_your_root_version_is_installed/bin/thisroot.sh

```

In your `.profile` file (or equivalent depending which shell you are using) . This command defines the proper environment variables and paths needed to run root.

---

<div class="post-metadata">

**Author:** ![elt0212](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/5f9b8f/32.png) [@elt0212](https://root-forum.cern.ch/u/elt0212)\
**Post date:** [November 27, 2018, 3:12pm UTC](https://root-forum.cern.ch/t/install-root-on-mac-os-mojave/31708/3 "2018-11-27T15:12:20Z")

</div>

hello,

thank you very much for commenting, it really helped!
