vagrant@precise64:/vagrant$ sudo ./myprogram
./myprogram: 1: ./myprogram: Syntax error: "(" unexpected
I found out that this happens when I do not create a binary file from the same OS. I do go buildwith Mac OS, but I need to run this binary from Vagrant, which uses Ubuntu Linux. Which command should I use instead of go buildwith a Mac so that I can run a binary program in a Vagrant environment?
user2671513
source
share