Yes, I download the latest go 1.18 installer for macOS from golang.google.cn. 
There's no problem with the installer from the official site.




------------------ Original ------------------
From: "Ian Lance Taylor"<i...@golang.org&gt;; 
Date: 2022年4月8日(星期五) 上午7:40
To: "Tong Sun"<suntong...@gmail.com&gt;; 
Cc: "golang-nuts"<golang-nuts@googlegroups.com&gt;; 
Subject: Re: [go-nuts] Missing /usr/lib/go/pkg/include/ for native binaries



On Thu, Apr 7, 2022 at 2:35 PM Tong Sun <suntong...@gmail.com&gt; wrote:
&gt;
&gt; This might be the first go package that I do `go get` and which requires 
native binaries:
&gt;
&gt; $ go get -v go.opentelemetry.io/otel/exporters/stdout/stdouttrace
&gt; golang.org/x/sys/unix
&gt; # golang.org/x/sys/unix
&gt; 
/.../Go/pkg/mod/golang.org/x/sys@v0.0.0-20210423185535-09eb48e85fd7/unix/asm_linux_amd64.s:9:
 #include: open /usr/lib/go-1.17/pkg/include/textflag.h: no such file or 
directory
&gt;
&gt; I checked and found that I'm missing the whole 
/usr/lib/go-1.17/pkg/include/ directory.
&gt;
&gt; How can I get them so that my `go get` can be successful?
&gt;
&gt; Thanks
&gt;
&gt; $ go version
&gt; go version go1.17.6 linux/amd64
&gt;
&gt; $ lsb_release -a
&gt; No LSB modules are available.
&gt; Distributor ID: Debian
&gt; Description:&nbsp;&nbsp;&nbsp; Debian GNU/Linux bullseye/sid
&gt; Release:&nbsp;&nbsp; 10.12
&gt; Codename:&nbsp; buster
&gt;
&gt; $ apt-cache policy golang-1.17-src
&gt; golang-1.17-src:
&gt;&nbsp;&nbsp; Installed: 1.17.6-1~bpo11+1
&gt;&nbsp;&nbsp; Candidate: 1.17.8-1~bpo11+1
&gt;&nbsp;&nbsp; Version table:
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1.17.8-1~bpo11+1 100
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100 
http://deb.debian.org/debian bullseye-backports/main amd64 Packages
&gt;&nbsp; *** 1.17.6-1~bpo11+1 100
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 100 /var/lib/dpkg/status

That's odd.&nbsp; File a bug report against Debian?&nbsp; I don't know why they
are missing.

You can of course get the header files you need by installing Go
yourself (https://go.dev/doc/install).

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUG%3DbHnYq4qGCC6ZTqhQX0WknDwvqZBTnEhm8tJ3Sbh9w%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/tencent_4192200F2E967CA8269F31780D23C4D87D05%40qq.com.

Reply via email to