2

everyone, I'm trying to install Rhbase package, but first I was missing thrift package, what I solved, but now it shows me another error. I added TProcessor.h into ../lib/cpp/src/thrift/processor/ but it didn't help and it shows me the same error:

    In file included from Hbase.cpp:7:0:
    Hbase.h:10:24: fatal error: TProcessor.h: No such file or directory
    #include <TProcessor.h>
                           ^
    compilation terminated.
    make: *** [Hbase.o] Error 1
    ERROR: compilation failed for package ‘rhbase’

I am using RStudio Thanks a lot

4

2 回答 2

2

你应该编辑thrift.pc.

我使用locate thrift.pc并在/usr/local/lib/pkgconfig/. 然后我编辑它,使includedir变量看起来像

includedir=${prefix}/include/thrift

它对我有用。

于 2016-05-16T10:55:06.410 回答
0

检查 threft.pc 文件在哪里

pkg-config --cflags 节俭

如果它在therft目录中使用这个命令移动

cd /usr/local/lib/pkgconfig

sudo perl -pi -e 's{(^includedir=.*/include$)}{$1/thrift}' thrift.pc

sudo perl -pi -e 's{(^Cflags:.*)}{$1 -std=c++11}' thrift.pc

并查找您的thrift 是否在此目录中。

pkg-config --cflags 节俭

-std=c++11 -I/usr/local/Cellar/thrift/0.9.2/include/thrift

或者根据您的系统配置在一些相关目录中。

于 2016-04-05T13:05:36.210 回答