Skip to content
New issue

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

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

Already on GitHub? # to your account

build milvus on Mac #27

Open
davideuler opened this issue Aug 26, 2022 · 0 comments
Open

build milvus on Mac #27

davideuler opened this issue Aug 26, 2022 · 0 comments

Comments

@davideuler
Copy link
Owner

Mac 上面编译 milvus:
cd milvus
make milvus

报错: linux_syscall.c:67:13: error: implicit declaration of function 'setresgid' is invalid in C99

在编译 go 代码的时候报错。可以更改 Makefile,在 GO build 前面指定 GOOS, GOARCH 来编译出 mac 下面的二进制来修复:
GO111MODULE=on GOOS=darwin GOARCH=amd64 $(GO) build -ldflags="-r $${RPATH}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant