baidu / sofa-pbrpc

A light-weight RPC implement of google protobuf RPC framework.
Other
2.13k stars 655 forks source link

在ubuntu16.04下make时发生以下错误 #122

Closed NanQiAi closed 7 years ago

NanQiAi commented 7 years ago

nlpman@nlpman-notebook:~/desktop/code/cpp_program/sofa-pbrpc$ make /home/nlpman/desktop/code/cpp_program/protobuf/output/bin/protoc --proto_path=./src --proto_path=/home/nlpman/desktop/code/cpp_program/protobuf/output/include --cpp_out=./src src/sofa/pbrpc/builtin_service.proto /home/nlpman/desktop/code/cpp_program/protobuf/output/bin/protoc: error while loading shared libraries: libprotoc.so.7: cannot open shared object file: No such file or directory Makefile:102: recipe for target 'src/sofa/pbrpc/builtin_service.pb.h' failed make: *\ [src/sofa/pbrpc/builtin_service.pb.h] Error 127 nlpman@nlpman-notebook:~/desktop/code/cpp_program/sofa-pbrpc$

NanQiAi commented 7 years ago

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib 或者编译后的lib目录就可以解决了。