Running gradlew produces ": No such file or directory"

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?

1

1 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.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like