# Failed to run source setup.sh

**URL:** <https://community.geodynamics.org/t/failed-to-run-source-setup-sh/1802>\
**Category:** PyLith\
**Created:** [April 21, 2021, 1:51pm UTC](https://community.geodynamics.org/t/failed-to-run-source-setup-sh/1802 "2021-04-21T13:51:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alvinakkuncoro](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@alvinakkuncoro](https://community.geodynamics.org/u/alvinakkuncoro)\
**Post date:** [April 21, 2021, 1:51pm UTC](https://community.geodynamics.org/t/failed-to-run-source-setup-sh/1802/1 "2021-04-21T13:51:06Z")

</div>

Dear everyone,

I just move to another workstation and re-install Pylith package.  
But when I run the source setup.sh , I obtained this notification :

hp6-clima-2:/scratch/akuncoro/2021/software/pylith\> source setup.sh  
pylith=/scratch/akuncoro/2021/software/pylith: Command not found.  
if: Expression Syntax.  
then: Command not found.

Is there any way to fix this?

Thank you in advance.  
Alvina K K

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [April 21, 2021, 2:25pm UTC](https://community.geodynamics.org/t/failed-to-run-source-setup-sh/1802/2 "2021-04-21T14:25:21Z")

</div>

It looks like `source setup.sh` is being executed using csh instead of bash. As noted in the PyLith manual this script only works in a bash shell. The workarounds are to (1) change your default shell to bash, (2) run `/bin/bash` to get a bash shell before running `source setup.sh`, or (3) translate `setup.sh` so it works with csh.

---

<div class="post-metadata">

**Author:** ![alvinakkuncoro](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@alvinakkuncoro](https://community.geodynamics.org/u/alvinakkuncoro)\
**Post date:** [April 22, 2021, 11:03am UTC](https://community.geodynamics.org/t/failed-to-run-source-setup-sh/1802/3 "2021-04-22T11:03:14Z")

</div>

It’s working.

Thank you for your help.

Alvina K K
