akihikodaki / cld3-ruby

cld3-ruby is an interface of Compact Language Detector v3 (CLD3) for Ruby.
Apache License 2.0
77 stars 22 forks source link

Failed to locate Protobuf on Windows. #25

Closed FranConcaro closed 3 years ago

FranConcaro commented 3 years ago

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?

akihikodaki commented 3 years ago

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.