红联Linux门户
Linux帮助

错误:/bin/sh: 1: protoc: not found的解决办法

发布时间:2016-07-01 10:20:57来源:linux网站作者:NearXDU
使用muduo源码中的脚本build.sh进行到一半报错,解决办法:
sudo apt-get install protobuf-compiler
 
参考:Build error: protoc: not found #48
Here, i met a build error, whose error message is displayed as follow:
[ 46%] Built target zlibstream_unittest
[ 46%] Built target muduo_protobuf_codec
[ 46%] Built target muduo_protobuf_codec_cpp11
[ 46%] Generating rpc.pb.cc, rpc.pb.h
/bin/sh: 1: protoc: not found
make[2]: *** [muduo/net/protorpc/rpc.pb.cc] Error 127
make[1]: *** [muduo/net/protorpc/CMakeFiles/muduo_protorpc_wire.dir/all] Error 2
make: *** [all] Error 2
It seems not helpful to install libprotoc-dev
Here is my environment:
Linux ubuntu 3.8.0-29-generic #42~precise1-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux
to:try sudo apt-get install protobuf-compiler
 
本文永久更新地址:http://www.linuxdiyf.com/linux/21963.html