build milvus on Mac

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c, go

Research direction

Start in the milvus directory by running make milvus on macOS and inspect the Makefile's Go build command. Use the linux_syscall.c:67:13 error to confirm the failure point and check the requested GOOS/GOARCH context. Done means the documented build completes and produces a macOS binary without the reported C99 error.

Written by the indexing model from the issue text.

Description

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}

Dominant language
Python
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from davideuler/programming-tips

All issues in davideuler/programming-tips

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.