Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M1 Mac 执行完安装命令后无法使用 diskusage 命令, macOS 下载的话下载哪个版本呢?我看 release 里都是 windows 和 linux 相关的版本 #31

Open
garychenming opened this issue Aug 19, 2022 · 6 comments
Labels
question Further information is requested

Comments

@garychenming
Copy link

  1. 首次执行完安装命令
    image

  2. 再次执行就报错
    image

@heqiang
Copy link

heqiang commented Aug 19, 2022

我也用过mac 是可以执行的

  1. 首次执行完安装命令
    image
  2. 再次执行就报错
    image

先跳过第二次下载的这个问题,先测试下程序是否可以执行

@chenquan
Copy link
Owner

  1. Darwin就是macOS

image

  1. 第二次的错误可能是goproxy导致的,可以换一个https://goproxy.cn/
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct

@garychenming
Copy link
Author

  1. Darwin就是macOS

image

  1. 第二次的错误可能是goproxy导致的,可以换一个https://goproxy.cn/
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct

好的, 谢谢老哥,可以把文件名写的更直观一点,方便下载

@garychenming
Copy link
Author

我也用过mac 是可以执行的

  1. 首次执行完安装命令
    image
  2. 再次执行就报错
    image

先跳过第二次下载的这个问题,先测试下程序是否可以执行
第一张截图就是执行完下载之后,我执行了 diskusage -h 然后报命令未找到

@chenquan
Copy link
Owner

  1. Darwin就是macOS

image

  1. 第二次的错误可能是goproxy导致的,可以换一个https://goproxy.cn/
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct

好的, 谢谢老哥,可以把文件名写的更直观一点,方便下载

是按照内核名字来命名的哈,MacOS的内核就是Darwin, linux也是内核呀

@heqiang
Copy link

heqiang commented Aug 19, 2022

我也用过mac 是可以执行的

  1. 首次执行完安装命令
    image
  2. 再次执行就报错
    image

先跳过第二次下载的这个问题,先测试下程序是否可以执行
第一张截图就是执行完下载之后,我执行了 diskusage -h 然后报命令未找到

先build 然后./main -h 这样运行

@chenquan chenquan added the question Further information is requested label Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants