Golang 编译zhmakeindex

2022-11-08  本文已影响0人  破旧的大卡车

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等即可.

上一篇 下一篇

猜你喜欢

热点阅读