chenquan / diskusage

💥A tool for showing disk usage(Linux, MacOS and Windows), it is a very fast utility to find largest directories or files.
Apache License 2.0
275 stars 5 forks source link

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

Open garychenming opened 2 years ago

garychenming commented 2 years ago
  1. 首次执行完安装命令 image

  2. 再次执行就报错 image

heqiang commented 2 years ago

我也用过mac 是可以执行的

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

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

chenquan commented 2 years ago
  1. Darwin就是macOS

image

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

image

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

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

garychenming commented 2 years ago

我也用过mac 是可以执行的

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

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

chenquan commented 2 years ago
  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 commented 2 years ago

我也用过mac 是可以执行的

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

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

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