akihikodaki / cld3-ruby

cld3-ruby is an interface of Compact Language Detector v3 (CLD3) for Ruby.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to locate Protobuf on Windows.

FranConcaro opened this issue · comments

Hi, I'm having this issue, while trying to install cld3. I've read all the issues before. But none of them had the fix I need.
image

mkmf.log only says: ""pkg-config --exists protobuf"
package configuration for protobuf is not found
"
I tried setting "c:\protobuf\protoc.exe" in the PATH at environment variables.
The cmd was able to get the protoc --version:
image

and the gcc --version:
image

Can you help me solve it?

It failed to find the library and header files, not the compiler. Install the files and check the installation with command pkg-config --exists protobuf.