tegola icon indicating copy to clipboard operation
tegola copied to clipboard

zsh: bad CPU type in executable:

Open Gnative opened this issue 11 months ago • 4 comments

I'm getting an error of zsh: bad CPU type in executable: when running the v0.21.0+ Darwin builds of Tegloa on my Intel 2019 Mac book pro.

Prior versions v0.20.0 and below work, not sure what is change here or how to make a new build if anyone is able to help.

Thanks

Gnative avatar Feb 14 '25 19:02 Gnative

That's interesting. Could you try compiling from source? https://github.com/go-spatial/tegola?tab=readme-ov-file#building-from-source

I wonder if the CI is only building for Apple Silicon on Darwin.

ARolek avatar Feb 14 '25 19:02 ARolek

Speaking of which we should probably start releasing a darwin-arm64 version as well.

gdey avatar Feb 14 '25 19:02 gdey

Time for goreleaser? 😊

iwpnd avatar Feb 15 '25 06:02 iwpnd

That's interesting. Could you try compiling from source?

I was able to compile on an Intel MacBook Pro. My only test so far:

./tegola version
   version: version not set
       git: not set @ not set
build tags: !noAzblobCache !noGCSCache !noGpkgProvider !noHanaProvider !noPostgisProvider !noPrometheusObserver !noRedisCache !noS3Cache !noViewer !pprof cgo
 ui viewer: viewer not built

Notes: [email protected] failed. [email protected] worked. Additions to install instructions: installed stringer and addchain. Ran go mod tidy.

kraig-droid avatar Feb 20 '25 22:02 kraig-droid