错误1(在make时报错):
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.
错误2(在make install时报错):
mkdir: /usr/lib/php/Thrift: Operation not permitted
先这样configure
./configure --prefix=/usr/local/ --with-php=no --with-boost=/usr/local CXXFLAGS="-g -O2"
然后再make,make install