go get zeromq4.0.5出现libzmq.pc错误

go get -tags zmq_4_x github.com/alecthomas/gozmq 出现如下错误:

pkg-config --cflags libzmq libzmq libzmq libzmq

Package libzmq was not found in the pkg-config search path. Perhaps you should add the directory containing libzmq.pc' to the PKG_CONFIG_PATH environment variable

No package 'libzmq' found Package libzmq was not found in the pkg-config search path. Perhaps you should add the directory containinglibzmq.pc' to the PKG_CONFIG_PATH environment variable

No package 'libzmq' found Package libzmq was not found in the pkg-config search path. Perhaps you should add the directory containing libzmq.pc' to the PKG_CONFIG_PATH environment variable

No package 'libzmq' found Package libzmq was not found in the pkg-config search path. Perhaps you should add the directory containinglibzmq.pc' to the PKG_CONFIG_PATH environment variable

No package 'libzmq' found pkg-config: exit status 1

操作系统:WIN7 32bit

Golang:1.4.1

Zeromq:4.0.5,用的是官方自带windows installer,应该是已经正确安装。 在zeromq的安装目录下面,根本就没找到libzmq.pc文件。看网上说,这个在Linux下面会有,难道说要用go来开发zeromq只能是去Linux下面,不能用window??

共 2 个回复


happyman

已经解决完成!

# 0

sujunbo

你好,请问你在windows下面试怎么解决的?

# 1