我试图在Mac OSX 10.10上将RHbase安装到R 3.1.1上。RHbase/thrift安装问题
我已经通过自制安装节俭,然而,当我尝试过R从源代码安装HBase的我得到以下几点:
install.packages("~/Downloads/rhbase_1.2.1.tar.gz", repos = NULL, type = "source")
* installing *source* package ‘rhbase’ ...
** libs
clang++ -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -I. -g -DHAVE_UINTPTR_T -DHAVE_NETDB_H=1 -fpermissive -DHAVE_INTTYPES_H -DHAVE_NETINET_IN_H -I./gen_cpp `pkg-config --cflags thrift` -Wall -fPIC -Wall -mtune=core2 -g -O2 -c Hbase.cpp -o Hbase.o
/bin/sh: pkg-config: command not found
In file included from Hbase.cpp:7:
./Hbase.h:10:10: fatal error: 'TProcessor.h' file not found
#include <TProcessor.h>
^
1 error generated.
make: *** [Hbase.o] Error 1
ERROR: compilation failed for package ‘rhbase’
* removing ‘/Library/Frameworks/R.framework/Versions/3.1/Resources/library/rhbase’
Warning in install.packages :
installation of package ‘/Users/halloran/Downloads/rhbase_1.2.1.tar.gz’ had non-zero exit status
想必它缺少一个环节所需的库?
编辑:看什么看pkg配置的回报..
pkg-config --cflags thrift
-I/usr/local/Cellar/thrift/0.9.1/include
我有同样的问题,你有没有解决它? – 2015-02-26 18:55:25
唉,不!从那时起,我没有尝试过修复它,我必须承认。 – 2015-02-27 15:02:18