Build problem in cygwin: /usr/bin/env: ‘python’

Short description of problem:
Userpc@User ~/ardupilot
$ ./waf copter
/usr/bin/env: ‘python’: No such file or directory

Detailed description:
I tried done all instruction from here:
https://ardupilot.org/dev/docs/building-setup-windows-cygwin.html

All looked OK before ‘Build with Waf’ step: when I try to build it give me:
/usr/bin/env: ‘python’: No such file or directory
But in my C:\cygwin64\bin I have python2.7.exe.
What the problem ?

Cygwin has changed how Python is installed.

You need to symlink python2.7.exe. to python.exe. You can do this by running this command in Cygwin:
ln -s /usr/bin/python2.7 /usr/bin/python

3 Likes

Wow! It works! Thank you!!!

it works on ubuntu and i get the same error. Having trouble adding python.