Apache Hawq中的编译错误.找不到位置



我正在尝试将Apache Hawq安装到我的节点上。我引用了Apache Hawq Wiki Page(https://cwiki.apache.org/confluence/display/hawq/build-and and install),并成功地完成了所有必需的因模块

下面的步骤是安装Apache Hawq,以下是命令。

git clone https://git-wip-us.apache.org/repos/asf/incubator-hawq.git
# The code directory is incubator-hawq.
CODE_BASE=`pwd`/incubator-hawq
cd $CODE_BASE
# Run command to generate makefile.
./configure
make -j8
# Install HAWQ
make install

但是,当我运行 ./configure时,我遇到了一个错误,说..

.....
checking for snappy-c.h... yes
checking for library containing snappy_max_compressed_length... -lsnappy
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking thrift/protocol/TBinaryProtocol.h usability... no
checking thrift/protocol/TBinaryProtocol.h presence... no
checking for thrift/protocol/TBinaryProtocol.h... no
configure: error: thrift is required

尽管我使用configure && make && make install安装和编译了thrift,但shell命令找不到thrift库。

因此,我输入了find -name 'TBinaryProtocol.h*',以找到已安装相关模块的位置。我收到以下消息。

[root@hawq1 incubator-hawq]# find / -name 'TBinaryProtocol.h*'
/usr/local/include/thrift/protocol/TBinaryProtocol.h
/root/Downloads/thrift-0.9.1/lib/cpp/src/thrift/protocol/TBinaryProtocol.h
/root/Downloads/thrift-0.9.1/lib/cocoa/src/protocol/TBinaryProtocol.h
/root/Downloads/hawq/thrift-0.9.1/lib/cpp/src/thrift/protocol/TBinaryProtocol.h
/root/Downloads/hawq/thrift-0.9.1/lib/cocoa/src/protocol/TBinaryProtocol.h

这意味着我有节俭模块,我认为它们已正确安装在我的目录中。我遵循Apache Wiki页面建议的说明,通过键入ldconfig -p /root/Downloads/hawq/thrift-0.9.1/lib/

但是我遇到了同样的错误。最后,我搜索了configure.log文件并找到了以下消息,表明它找不到旧模块的位置。

configure:10377: checking thrift/protocol/TBinaryProtocol.h usability
configure:10377: g++ -c -g -O2  -D_GNU_SOURCE  conftest.cpp >&5
conftest.cpp:76:45: fatal error: thrift/protocol/TBinaryProtocol.h: No such file or directory
 #include <thrift/protocol/TBinaryProtocol.h>

如何解决这个问题?任何帮助将不胜感激。

我不认为您的旧金安装路径是/root/Downloads/hawq/thrift-0.9.1/lib/。您可以尝试/usr/local/include/thrift吗?

也许您可以尝试使用百胜安装节俭。

相关内容

最新更新