我试着从源头上安装ansible。我所做的是:
sudo apt-get install python2.7-dev
sudo pip install paramiko PyYAML Jinja2 httplib2
git clone git://github.com/ansible/ansible.git --recursive然后,当我尝试
~/src/ansible$ source ./hacking/env-setup我得到了
: command not found
: command not found
bash: ./hacking/env-setup: line 17: syntax error near unexpected token `elif'
'ash: ./hacking/env-setup: line 17: `elif [ $(basename -- "$0") = "env-setup" ]; then知道少了什么吗?
发布于 2016-05-30 01:09:10
您的env设置中是否有dos行的结尾?检查您的core.autocrlf设置,这不应该是真的。如果是,请:
git config --global core.autocrlf falsehttps://stackoverflow.com/questions/37502772
复制相似问题