unit
unit copied to clipboard
Unable to install Go library on mac os
Hello,
I want to install Go library for unit, but seems like i am missing header file. Is there a way to install it without building from source?
Seems like there dev packages for apt and yum, but not for brew?
I also did brew install nginx/unit/unit
.
go get output:
➜ go get unit.nginx.org/[email protected]
# unit.nginx.org/go
In file included from ../../../[email protected]/go/port.go:9:
./nxt_cgo_lib.h:14:10: fatal error: 'nxt_unit.h' file not found
#include <nxt_unit.h>
^~~~~~~~~~~~
1 error generated.
I am using macos Big Sur 11.6 and go1.17.2 darwin/arm64
Thank you in advance!
Hello,
Required headers files are expected to be installed via brew. Please check the /usr/local/include/nxt_unit.h
.
Go should smoothly use this headers.
Try to add -x
flag for build
or get
commands to see the compiler commands.