Skip to content

build milvus on Mac #27

Description

@davideuler

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}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions