cannot find package “golang.org/x/sys/unix“

简介: cannot find package “golang.org/x/sys/unix“

安装pcstat的时候报错,记录一下解决过程

mincore.go:24:2: cannot find package "golang.org/x/sys/unix" in any of:
        /usr/local/go/src/golang.org/x/sys/unix (from $GOROOT)
        /usr/local/gopath/src/golang.org/x/sys/unix (from $GOPATH)

这个看起来是下载go的时候没有把模块一起带下来,github上面说有两种做法,查看

上面说可以直接命令安装,或者下载到对应的路径,我两种方法都试了,目测网络过不去

我直接把包下载过来放到对应的路径

unzip sys-master.zip
mv sys-master sys

问题解决

目录
相关文章
|
1月前
|
Ubuntu Cloud Native Unix
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker 错误
在使用WSL(Ubuntu 18.04.6)时,初学者遇到运行Docker时的错误:“Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?”。解决问题的过程包括:首先尝试通过`sudo apt-get install daemon`安装daemon,然后使用`sudo service docker start`启动Docker。通过`sudo service docker status`确认Docker已启动,并成功运行`docker
|
1月前
|
Unix Docker 容器
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon
555 0
|
Unix Docker 容器
Win10 WSL运行docker报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
Win10 WSL运行docker报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
623 0
Win10 WSL运行docker报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
|
Unix Docker 容器
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_34173549/article/details/80397950 doc...
6744 0
|
Go Windows 开发工具
解决golang windows调试问题:Could not determine version number: could not find symbol value for runtime.buildVersion
版本信息: go:1.8.3 windows: win7/64 idea-go-plugin:171.4694.61 在windows下,使用dlv进行调试的时候,如果golang程序引入了c模块,比如常用的sqlite模块,那么在调试的时候一定会发生这个错误: · Could not determine version number: could not find symbol value for runtime.buildVersion· 现在这个问题已经解决了,解决方法就是go build 的时候加入-ldflags="-linkmode internal" ,这样就可以正常调试了。
2131 0
|
1月前
|
缓存 网络协议 Unix
Linux(UNIX)五种网络I/O模型与IO多路复用
Linux(UNIX)五种网络I/O模型与IO多路复用
125 0
|
1月前
|
Unix Shell Linux
在Unix/Linux操作系统中,Shell脚本广泛用于自动化任务
在Unix/Linux操作系统中,Shell脚本广泛用于自动化任务
39 2
|
1月前
|
Unix Shell Linux
在Linux和类Unix系统中,Shell提供了多种命令用于用户和权限管理
在Linux和类Unix系统中,Shell提供了多种命令用于用户和权限管理
45 4
|
1月前
|
Oracle Ubuntu Unix
Unix与Linux区别
Unix: Unix是一个操作系统家族的名称,最早由贝尔实验室(Bell Labs)的肖像电机公司(AT&T)开发。最早的Unix版本是在1969年创建的。 Linux: Linux是由芬兰计算机科学家Linus Torvalds在1991年创建的。它是作为一个免费、开放源代码的Unix克隆而开始的。
27 1
|
1月前
|
Unix Shell Linux
在Unix/Linux Shell中,管道(`|`)和重定向
在Unix/Linux Shell中,管道(`|`)和重定向
36 1