Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Issues building on macOS #1

Closed
anoldguy opened this issue Aug 21, 2017 · 3 comments
Closed

Issues building on macOS #1

anoldguy opened this issue Aug 21, 2017 · 3 comments

Comments

@anoldguy
Copy link

Hey, I read your article about terminal latency, and was pretty interested in trying out gofu!

I'm running on macOS, go version go1.8.3 darwin/amd64, and when I run make, I get:

GOPATH=<path>/gofu/.gopath GOBIN=<path>/gofu/build go install  -ldflags '-s -w' 'github.com/majewsky/gofu'
# github.com/majewsky/gofu/pkg/prompt
could not determine kind of name for C.__uid_t
make: *** [build/gofu] Error 2

I'm very new to golang, but some googling shows similar issues for the git2go project, so I built a new version of libgit2 with homebrew, but I'm still getting the issue.

Do you normally run on a mac, or is your daily OS linux?

@maurice-g
Copy link

Hi, came here the same way and ran into the same issue.
To resolve it you need to change line 55 in pkg/prompt/login.go to
pw, err := C.getpwuid(C.uid_t(os.Getuid())) (remove the underscores).
That did the job for me.

Cool project, keep it up!

@anoldguy
Copy link
Author

I can confirm that got it to compile! Thanks!

@majewsky
Copy link
Owner

majewsky commented Dec 5, 2017

Sorry for not noticing this. Apparently Github does not notify me when someone creates an issue/PR on my own repos. Anyway, this has been fixed in ae44763.

@majewsky majewsky closed this as completed Dec 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants