Failed to run source setup.sh

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

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.

It’s working.

Thank you for your help.

Alvina K K