We are two developers running Vagrant VMs with Ubuntu 12.04 installed. Running ./gradlew to execute our build script works fine for me, but when he runs the same command he gets the error: : No such file or directory.
I have googled this to the max but all solutions are related to running a 32-bit executable on a 64-bit system but we are running 32-bit Ubuntu. Since we do this immediately after creating the VM from a provisioning script, the machines should be identical. The only differences I can think of are external, he runs Vagrant from Windows while I run it from OS X.
Any ideas?
11 Answer
Seems like the line endings are not in Unix style (LF).
Open the file in vi and type set fileformat=unix.
Then save :w and try again.