# Possibly incorrect bash profile

**URL:** <https://root-forum.cern.ch/t/possibly-incorrect-bash-profile/37354>\
**Category:** Newbie\
**Created:** [December 28, 2019, 4:50pm UTC](https://root-forum.cern.ch/t/possibly-incorrect-bash-profile/37354 "2019-12-28T16:50:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asp211](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/cdc98d/32.png) [@asp211](https://root-forum.cern.ch/u/asp211)\
**Post date:** [December 28, 2019, 4:50pm UTC](https://root-forum.cern.ch/t/possibly-incorrect-bash-profile/37354/1 "2019-12-28T16:50:10Z")

</div>

* * *

_ROOT Version:_ 6.18/04  
_Platform:_ VSCode  
_Compiler:_ Terminal  
_System:_ Mac OSX

* * *

I downloaded root, but I’m not sure if I set my .bash~profile correctly. What lines should I have in my .bash~profile in order to make it work correctly? Currently, I have:

```auto
export ROOTSYS=/usr/local/root
export PATH=$ROOTSYS/bin:$PATH
export DYLD_LIBRARY_PATH=$ROOTSYS/lib:$DYLD_LIBRARY_PATH

```

Not sure if this is correct. I’m skeptical because when I run a macro with:

```auto
#include <iostream>
#include <cmath>

```

The first line gives two errors, namely **"include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/Users/myname/Documents/root2/macros/f1.C)"**

**"cannot open source file “iostream”"**

The second lines gives the error **"cannot open source file “cmath”"**

What do I fix, if anything?

Thanks

---

<div class="post-metadata">

**Author:** ![StephanH](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@StephanH](https://root-forum.cern.ch/u/StephanH)\
**Post date:** [January 2, 2020, 3:19pm UTC](https://root-forum.cern.ch/t/possibly-incorrect-bash-profile/37354/2 "2020-01-02T15:19:44Z")

</div>

Hi,

maybe @Axel or @oshadura can help when they are back from vacation. How did you install root?

---

<div class="post-metadata">

**Author:** ![asp211](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/cdc98d/32.png) [@asp211](https://root-forum.cern.ch/u/asp211)\
**Post date:** [January 2, 2020, 3:46pm UTC](https://root-forum.cern.ch/t/possibly-incorrect-bash-profile/37354/3 "2020-01-02T15:46:12Z")

</div>

Actually, I fixed it. Thanks anyways.

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [January 2, 2020, 4:06pm UTC](https://root-forum.cern.ch/t/possibly-incorrect-bash-profile/37354/4 "2020-01-02T16:06:16Z")

</div>

Could you share what you did to fix it, for other people to know should they see the same issue?

---

<div class="post-metadata">

**Author:** ![asp211](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/cdc98d/32.png) [@asp211](https://root-forum.cern.ch/u/asp211)\
**Post date:** [January 2, 2020, 4:30pm UTC](https://root-forum.cern.ch/t/possibly-incorrect-bash-profile/37354/5 "2020-01-02T16:30:38Z")

</div>

In actuality, I fixed another error that upon fixing, allowed me to run my code. (I moved my files to a place where they would actually be opened by the code). I realize that I didn’t fix my code to solve the original problem. I’m still confused as to what the bash profile exactly does and I don’t know what lines I should put in there.

Anyways, here is how I downloaded root: (for Mac OSX)

1. Download OsX 10.14 clang100 from [https://root.cern.ch/content/release-61804](https://root.cern.ch/content/release-61804)

2. Once it’s done, I put the root folder in my Documents folder (not required, you can keep the file anywhere)

3. Go to the Mac Terminal. Type in “cd Documents” (if applicable, again not necessary if you didn’t place in your documents folder.

4. If no error shows, type in “cd root” (or something else if you have duplicate root folders)

5. Type in “source ./bin/thisroot.sh”

6. Type in “root” and it works.
