Golang 编译zhmakeindex

windows 下的没有问题, mac下好像不能运行. 故尝试重新编译.

  1. 参考官方安装go.
  2. 编译zhmakeindex
git clone https://github.com/leo-liu/zhmakeindex.git
cd zhmakeindex
go mod init zhmakeindex
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn
go build
install.sh

若出现fatal error: runtime: bsdthread_register error, 则按照https://www.cnblogs.com/layezi/p/16216085.html, 使用

brew doctor

重新安装brew/core brew/cask等即可.

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容