pkg-config:命令未找到错误

时间:2014-11-15 14:15:20

标签: r hadoop

我正在使用Hadoop设置R.我在安装包“rhbase”时遇到以下错误:(其他包[见下文]及其依赖项已成功安装)

bash-3.2 $ ls plyrmr_0.4.0.tar rhbase_1.2.1.tar rhdfs_1.0.8.tar rmr2_3.2.0.tar

ERROR:

> install.packages("/Users/raunak/Downloads/rlibs/rhbase_1.2.1.tar", 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/raunak/Downloads/rlibs/rhbase_1.2.1.tar’ had non-zero exit status

bash-3.2 $,其中pkg-config

的/ usr / local / bin中/ pkg配置

可能是什么原因?

0 个答案:

没有答案