找不到PROTOBUF编译器 [英] Could not find PROTOBUF Compiler
本文介绍了找不到PROTOBUF编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用Caffe进行CMake,但是我的系统找不到protobuf编译器。我以前已经安装了protobuf2.7.0。现在我切换回2.6.1。如何配置CMake以识别protobuf2.6.1编译器?
I'm trying to do a CMake with Caffe, but my system cannot find protobuf compiler. I have previously installed protobuf2.7.0. Now I switched back to 2.6.1. How could I configure my CMake to recognize the protobuf2.6.1 compiler?
我已经完成
$ sudo apt-get install libprotobuf-dev protobuf-compiler
$ protoc --version
libprotoc 2.6.1
但是当我尝试伪装Caffe时,它仍然给我错误
But when I try to cmake Caffe, it still gives me the error
user@user-computer:~/caffe/build$ cmake -DBLAS=open ..
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- system
-- thread
-- filesystem
-- chrono
-- date_time
-- atomic
-- Found gflags (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libgflags.so)
-- Found glog (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libglog.so)
CMake Error at cmake/ProtoBuf.cmake:13 (message):
Could not find PROTOBUF Compiler
Call Stack (most recent call first):
cmake/Dependencies.cmake:43 (include)
CMakeLists.txt:46 (include)
-- Configuring incomplete, errors occurred!
See also "/home/user/caffe/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/caffe/build/CMakeFiles/CMakeError.log".
推荐答案
以下命令对我有用。
apt-get install protobuf-compiler
这篇关于找不到PROTOBUF编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文