# Not able to run source ./hacking/env-setup

**URL:** <https://forum.ansible.com/t/not-able-to-run-source-hacking-env-setup/25829>\
**Category:** Ansible Developer\
**Created:** [October 26, 2017, 11:19am UTC](https://forum.ansible.com/t/not-able-to-run-source-hacking-env-setup/25829 "2017-10-26T11:19:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anil\_Kumar\_Muraleedh](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Anil\_Kumar\_Muraleedh](https://forum.ansible.com/u/Anil_Kumar_Muraleedh)\
**Post date:** [October 26, 2017, 11:19am UTC](https://forum.ansible.com/t/not-able-to-run-source-hacking-env-setup/25829/1 "2017-10-26T11:19:55Z")

</div>

Hi,

I am trying to install ansible based on the [http://docs.ansible.com/ansible/latest/intro\_installation.html#running-from-sourceWhen](http://docs.ansible.com/ansible/latest/intro_installation.html#running-from-sourceWhen) I try to run the source ./hacking/env-setup, I am getting the following error

root@Ansible01:/home/test/ansible/verOct26/ansible# source ./hacking/env-setup  
: command not found  
: command not found  
: command not found  
bash: ./hacking/env-setup: line 20: syntax error near unexpected token `elif' 'ash: ./hacking/env-setup: line 20: `elif [$(basename – “$0”) = “env-setup”]; then  
root@Ansible01:/home/test/ansible/verOct26/ansible

What could be the issue? and How can I resolve this?

-Anil
