Re: [go-nuts] Unsupported File Format error while building for linux-amd64 on mac os

2021-01-05 Thread Matt Joiner
I found this, which worked without GOPATH assumptions: https://blog.filippo.io/easy-windows-and-linux-cross-compilers-for-macos/ On Monday, 1 October 2018 at 7:32:23 pm UTC+10 Ankit Gupta wrote: > Tamas, > > I installed docker on mac and cross compiled using xgo like you suggested. > Worked per

Re: [go-nuts] Unsupported File Format error while building for linux-amd64 on mac os

2018-10-01 Thread Ankit Gupta
Tamas, I installed docker on mac and cross compiled using xgo like you suggested. Worked perfectly. Thanks a lot! On Saturday, September 29, 2018 at 1:58:20 AM UTC+5:30, Tamás Gulácsi wrote: > > 2018. szeptember 28., péntek 15:59:14 UTC+2 időpontban Ankit Gupta a > következőt írta: >> >> Thanks

Re: [go-nuts] Unsupported File Format error while building for linux-amd64 on mac os

2018-09-29 Thread roger peppe
I've also found that multipass (https://github.com/CanonicalLtd/multipass) works well for running Ubuntu on different platforms FWIW. On Fri, 28 Sep 2018, 9:28 pm Tamás Gulácsi, wrote: > 2018. szeptember 28., péntek 15:59:14 UTC+2 időpontban Ankit Gupta a > következőt írta: >> >> Thanks Ian for

Re: [go-nuts] Unsupported File Format error while building for linux-amd64 on mac os

2018-09-28 Thread Tamás Gulácsi
2018. szeptember 28., péntek 15:59:14 UTC+2 időpontban Ankit Gupta a következőt írta: > > Thanks Ian for responding. Can you point me as to how to get the cross > compiler. I am farely new to Mac. > > On Fri, 28 Sep 2018, 19:23 Ian Lance Taylor, > wrote: > >> On Fri, Sep 28, 2018 at 2:08 AM, Ank

Re: [go-nuts] Unsupported File Format error while building for linux-amd64 on mac os

2018-09-28 Thread Ian Lance Taylor
On Fri, Sep 28, 2018 at 6:58 AM, Ankit Gupta wrote: > Thanks Ian for responding. Can you point me as to how to get the cross > compiler. I am farely new to Mac. Sorry, I don't use Macs at all. Ian > On Fri, 28 Sep 2018, 19:23 Ian Lance Taylor, wrote: >> >> On Fri, Sep 28, 2018 at 2:08 AM, Ank

Re: [go-nuts] Unsupported File Format error while building for linux-amd64 on mac os

2018-09-28 Thread Ankit Gupta
Thanks Ian for responding. Can you point me as to how to get the cross compiler. I am farely new to Mac. On Fri, 28 Sep 2018, 19:23 Ian Lance Taylor, wrote: > On Fri, Sep 28, 2018 at 2:08 AM, Ankit Gupta > wrote: > > > > I am working with confluent-kafka-go library > > (https://github.com/confl

Re: [go-nuts] Unsupported File Format error while building for linux-amd64 on mac os

2018-09-28 Thread Ian Lance Taylor
On Fri, Sep 28, 2018 at 2:08 AM, Ankit Gupta wrote: > > I am working with confluent-kafka-go library > (https://github.com/confluentinc/confluent-kafka-go) which builds fine on > the mac machine (mac OS 10.13.6) along with the code files I wrote. In order > to deploy it on Linux server (Ubuntu 64

[go-nuts] Unsupported File Format error while building for linux-amd64 on mac os

2018-09-28 Thread Ankit Gupta
I am working with confluent-kafka-go library (https://github.com/confluentinc/confluent-kafka-go) which builds fine on the mac machine (mac OS 10.13.6) along with the code files I wrote. In order to deploy it on Linux server (Ubuntu 64 bit), I try this - $> CGO_ENABLED=1 GOOS=linux GOARCH=amd6