Gonzalo García
Gonzalo García

Reputation: 57

Can I use golang on Solaris 5.10?

I'm trying to use golang on Solaris 5.10 i86c (x86 + x86_64) but I can't find a package made for Solaris.

In addition, I want this to make a binary file for Filebeat which runs in Solaris 5.10 systems. The actual release of Filebeat (amd64) doesn't work on my Solaris distro.

Anyone can guide me a little bit?

Upvotes: 2

Views: 4382

Answers (1)

A J
A J

Reputation: 2593

Go supports Solaris 11 on amd64, but not sparc. To build for sparc you need to use gccgo.

To build a pure Go project for Solaris/amd64 you can use:

$ GOOS=solaris GOARCH=amd64 go build

See this answer https://stackoverflow.com/a/37419289/503798 for more info about Filebeat on Solaris (it includes a link to a Filebeat binary for solaris 11 on amd64).

Upvotes: 3

Related Questions