我正在尝试编译一个Apache Thrift定义文件(在Ubuntu上)。每当我在命令行中输入thrift -r --gen java Calculator.thrift时,我都会收到错误消息:Could not open input file with realpath:Calculator.thrift。我已经安装了Thrift。我应该在哪里保存.thrift定义文件,以便可以对其进行编译?
checking for thrift/protocol/TBinaryProtocol.h... no尽管我使用configure&& make && make install安装和编译了thrift,但shell命令找不到thrift库。/root/Downloads/thrift-0.9.1/lib/cpp/src