You can install the pre-compiled binary (in several different ways), use Docker.
Here are the steps for each of them:
openwrt/entware/optware (Usually on the router):
opkg update opkg install gateway-go
homebrew tap :
$ brew install OpenIoTHub/tap/gateway-go
homebrew (may not be the latest version):
$ brew install gateway-go
homebrew pr gateway-go
*** config file : /usr/local/etc/gateway-go/gateway-go.yaml
$ sudo snap install gateway-go
*** config file : /root/snap/gateway-go/current/gateway-go.yaml
$ scoop bucket add OpenIoTHub https://github.com/OpenIoTHub/scoop-bucket.git $ scoop install gateway-go
.rpm from the releases page and
dpkg -i and
rpm -i respectively.
*** config file : /etc/gateway-go/gateway-go.yaml
$ curl -sfL https://install.goreleaser.com/github.com/OpenIoTHub/gateway-go.sh | sh
Download the pre-compiled binaries from the releases page and copy to the desired location.
You can also use it within a Docker container. To do that, you'll need to execute something more-or-less like the following:
$ docker run openiothub/gateway:latest
Note that the image will almost always have the last stable Go version.