# Syntax error in thisroot.csh during installation?

**URL:** <https://root-forum.cern.ch/t/syntax-error-in-thisroot-csh-during-installation/38981>\
**Category:** Newbie\
**Created:** [April 19, 2020, 1:15pm UTC](https://root-forum.cern.ch/t/syntax-error-in-thisroot-csh-during-installation/38981 "2020-04-19T13:15:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanguy1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tanguy1/32/21647_2.png) [@Tanguy1](https://root-forum.cern.ch/u/Tanguy1)\
**Post date:** [April 19, 2020, 1:15pm UTC](https://root-forum.cern.ch/t/syntax-error-in-thisroot-csh-during-installation/38981/1 "2020-04-19T13:15:40Z")

</div>

Greetings,  
I recently installed root\_v6.20.04 on my macbook pro (Version 10.14.6) from the [https://root.cern/content/release-62004](https://root.cern/content/release-62004) website. There I downloaded the “Macos 10.14 clang100” .pkg file and followed the installation procedure which installed it in the /Applications directory. Afterwards I followed the ReadMe instructions to set the correct environment variables by putting the following lines in my .bash\_profile:

```auto
. /Applications/root_v6.20.04/bin/thisroot.sh
source /Applications/root_v6.20.04/bin/thisroot.csh

```

When I now run root I get this error:

```auto
-bash: /Applications/root_v6.20.04/bin/thisroot.csh: line 17: syntax error near unexpected token `('
-bash: /Applications/root_v6.20.04/bin/thisroot.csh: line 17: `set ARGS=($_)'

```

I doubt the .csh file actually has a syntax error since I didn’t touch it, what am I doing wrong?  
Thanks in advance.

_ROOT Version:_  
root\_v6.20.04

_Platform:_  
MAC OS Mojave Version 10.14.6 (18G1012)

_Compiler:_  
Apple clang version 11.0.0 (clang-1100.0.33.17)  
Target: x86\_64-apple-darwin18.7.0  
Thread model: posix  
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

* * *

---

<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:** [April 19, 2020, 2:19pm UTC](https://root-forum.cern.ch/t/syntax-error-in-thisroot-csh-during-installation/38981/2 "2020-04-19T14:19:06Z")

</div>

[google -\> .csh linux](https://www.google.com/search?q=.csh+linux)

---

<div class="post-metadata">

**Author:** ![Tanguy1](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/tanguy1/32/21647_2.png) [@Tanguy1](https://root-forum.cern.ch/u/Tanguy1)\
**Post date:** [April 19, 2020, 2:36pm UTC](https://root-forum.cern.ch/t/syntax-error-in-thisroot-csh-during-installation/38981/3 "2020-04-19T14:36:57Z")

</div>

Not sure what you mean by that Wile\_E\_Coyote.

---

<div class="post-metadata">

**Author:** ![jblomer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@jblomer](https://root-forum.cern.ch/u/jblomer)\
**Post date:** [April 19, 2020, 9:14pm UTC](https://root-forum.cern.ch/t/syntax-error-in-thisroot-csh-during-installation/38981/4 "2020-04-19T21:14:46Z")

</div>

If you are not using the C shell (`tcsh` or `csh`), you can simply drop the second line and only source `thisroot.sh`. Otherwise, put `source /Applications/root_v6.20.04/bin/thisroot.csh` in your `.cshrc` file.
