我正在使用GitHub 上的protobuf-c。当我运行 make 时出现此错误。
$ git clone https://github.com/protobuf-c/protobuf-c.git
Cloning into 'protobuf-c'...
$ cd protobuf-c
$ ./autogen.sh
...
Run Code Online (Sandbox Code Playgroud)
进而:
$ ./configure
...
checking whether g++ supports C++11 features with -std=c++11... yes
checking for protobuf... no
checking for protobuf... no
configure: error: Package requirements (libprotobuf-c >= 1.0.1) were not met:
No package 'libprotobuf-c' found
Consider adjusting the `PKG_CONFIG_PATH` environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables `libprotobuf_c_CFLAGS`
and `libprotobuf_c_LIBS` to avoid …Run Code Online (Sandbox Code Playgroud)