Closed tsconn23 closed 5 years ago
The GO environment variable used to build the service is defined in the Makefile to compile explicitly for Linux.
GO
Makefile
GO=CGO_ENABLED=0 GO111MODULE=on GOOS=linux go
After building the service, trying to run it on a non-Linux machine, like a Mac, produces the following error:
~/Documents/code/git/tsconn23/security-api-gateway $ make run cd cmd/edgexproxy && ./edgexproxy init=true /bin/sh: ./edgexproxy: cannot execute binary file make: *** [run] Error 126
This makes the service impossible to test locally without Makefile changes unless one is running Linux.
removed target OS in the Makefile in the #66.
The
GO
environment variable used to build the service is defined in theMakefile
to compile explicitly for Linux.GO=CGO_ENABLED=0 GO111MODULE=on GOOS=linux go
After building the service, trying to run it on a non-Linux machine, like a Mac, produces the following error:
This makes the service impossible to test locally without Makefile changes unless one is running Linux.