Closed aSapien closed 4 years ago
To get this building on Mac OS versions that don't support x86 (32-bit) executables, which are "Catalina", 10.15+, I had to do the following.
Install go, and "dep" (dependancies manager for go):
brew install go dep
Set "GOPATH"s and friends:
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH="$PATH:$GOPATH/bin:$GOROOT/bin"
Fetch the lamp source:
go get github.com/opsgenie/opsgenie-lamp
Change to the go-supplied source:
cd $HOME/golang/src/github.com/opsgenie/opsgenie-lamp
Use dep
to fetch the dependancies at the versions specified in Gopkg.toml:
dep ensure
And finally run go build
with the proper architecture:
export GOOS=darwin GOARCH=amd64; go build
You'll be supplied with an "opsgenie-lamp" in the current directory which you can copy elsewhere. I keep mine in a homebrew-ish location:
cp opsgenie-lamp /usr/local/bin/
Ideally the Opsgenie supplied binary would be 64-bit.
The binary file is refreshed to 64-bit for macOS.
I had to so the same as @curiositycasualty to get this working on my macOS running Mojave 10.14.6
Hi @tmack8001, did you try latest package from here? https://github.com/opsgenie/opsgenie-integration/blob/master/opsgenie-lamp/opsgenie-lamp.zip
It's working for me on 10.14.6
No I installed opsgenie-lamp with go get
and got version 3.0.0
lamp --version
lamp version 3.0.0
This seems to still be an issue for me on Mojave 10.14.6 when running:
go get github.com/opsgenie/opsgenie-lamp
However
wget https://github.com/opsgenie/opsgenie-integration/raw/master/opsgenie-lamp/opsgenie-lamp.zip && unzip opsgenie-lamp.zip && chmod +x opsgenie-lamp && rm -rf opsgenie-lamp.zip
works.
go version: go1.13.4 darwin/amd64 macos version: 10.15.1
Attempts to use the compiled binary from opsgenie-integration/opsgenie-lamp/opsgenie-lamp.zip result in the following error:
Attempts to
go get ...
result in the following errors: