私のノードにApache HAWQをインストールしようとしています。私はApache HAWQ wikiページ(https://cwiki.apache.org/confluence/display/HAWQ/Build+and+Install)を参照し、Hadoop、boost、thriftなどの必要なすべての依存モジュールを正常に完成させました。Apache HAWQでコンパイルエラーが発生しました。場所が見つかりません
そして、次のステップは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
を使用して倹約をインストールしてコンパイルしますが、シェルコマンドは倹約ライブラリを見つけることができません。
私はfind \ -name 'TBinaryProtocol.h*'
と入力して、リリーフ関連のモジュールがインストールされている場所を探しました。そして私は以下のメッセージを得ました。
[[email protected] 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>
この問題を解決するにはどうすればよいですか?どんな助力も非常に高く評価されます。