最近在編譯 Thrift 的時候出現這種狀況,我按照官方教程的要求,全部版本都是最新,可是還出現這種問題。git
make[4]: Entering directory `/home/yantze/dl/thrift/lib/cpp/test' Makefile:1189: gen-cpp/.deps/ChildService.Plo: No such file or directory Makefile:1190: gen-cpp/.deps/DebugProtoTest_types.Plo: No such file or directory Makefile:1191: gen-cpp/.deps/EmptyService.Plo: No such file or directory Makefile:1192: gen-cpp/.deps/EnumTest_types.Plo: No such file or directory Makefile:1193: gen-cpp/.deps/OptionalRequiredTest_types.Plo: No such file or directory Makefile:1194: gen-cpp/.deps/ParentService.Plo: No such file or directory Makefile:1195: gen-cpp/.deps/Recursive_types.Plo: No such file or directory Makefile:1196: gen-cpp/.deps/ThriftTest_constants.Plo: No such file or directory Makefile:1197: gen-cpp/.deps/ThriftTest_types.Plo: No such file or directory Makefile:1198: gen-cpp/.deps/TypedefTest_types.Plo: No such file or directory Makefile:1199: gen-cpp/.deps/proc_types.Plo: No such file or directory make[4]: *** No rule to make target `gen-cpp/.deps/proc_types.Plo'. Stop.
斷斷續續,中午終於搞定編譯,可是也不知道能不能用。apache
git clone https://git-wip-us.apache.org/repos/asf/thrift.git cd thrift ./bootstrap.sh ./configure --with-lua=no --with-erlang=no make -j1 sudo make install
`make -j1`應該是隻用一個 CPU 編譯的意思。bootstrap