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

can't install using go in m1 mac #98

Closed
kavindalj opened this issue Aug 22, 2023 · 3 comments
Closed

can't install using go in m1 mac #98

kavindalj opened this issue Aug 22, 2023 · 3 comments

Comments

@kavindalj
Copy link

          > 

I tried this on my m1 mac and didn't work for me..please anyone can help to fix this?

CGO_CFLAGS="-I/opt/homebrew/Cellar/libmagic/5.44/include/magic.h" go install github.com/doronbehar/pistol/cmd/pistol@latest
# github.com/doronbehar/magicmime
go/pkg/mod/github.com/doronbehar/magicmime@v0.1.1-0.20211127135329-3de4ff29dc49/magicmime.go:28:11: fatal error: 'magic.h' file not found
 #include <magic.h>
          ^~~~~~~~~
1 error generated.

Originally posted by @kavindalj in #6 (comment)

@doronbehar
Copy link
Owner

doronbehar commented Aug 22, 2023 via email

@kavindalj
Copy link
Author

go install github.com/doronbehar/pistol/cmd/pistol@latest

It gets the same results too. I can't find what I did wrong

@kavindalj
Copy link
Author

CGO_CFLAGS="-I/opt/homebrew/Cellar/libmagic/5.45/include" CGO_LDFLAGS="-L/opt/homebrew/Cellar/libmagic/5.45/lib" go install github.com/doronbehar/pistol/cmd/pistol@latest
I uninstalled everything and installed using this command. it's working now 🙂

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

2 participants