I was trying to use gozmq for my go project with ZMQ however, I was having some problems and wasn't really sure what the problem was.
When I run my application with zmq as in:
$ go run main.go
I get back:
# pkg-config --cflags libzmq libzmq libzmq libzmq
exec: "pkg-config": executable file not found in $PATH
I don't actually know what it means or why it comes up. However, I guessed that I didn't install zmq or it cannot find it or something...so I brew installed it with
brew install zmq
But I get:
Warning: zeromq-4.0.4 already installed
So I know that I already installed it. Even though its installed it doesn't work, weird?
The instruction at gozmq do say to run for 4.x install with:
go get -tags zmq_4_x github.com/alecthomas/gozmq
I literally ran:
go get -tags zmq_4_x github.com/alecthomas/gozmq
and
go get -tags zmq_4_0 github.com/alecthomas/gozmq
and
go get -tags zmq_4_0_4 github.com/alecthomas/gozmq
I thought the last one would work since it matches the version I had but non of the above worked.
In fact they all just returned the familiar error:
# pkg-config --cflags libzmq libzmq libzmq libzmq
exec: "pkg-config": executable file not found in $PATH
As a last resource I tried to go to (the official site) at:
http://zeromq.org/docs:source-git
to install it but the instruction they have for MAC OS X and Unix-like systems does not work for my computer. Does anyone know whats going on? What else should I try?