【问题标题】:Cannot install RHIPE. error: unable to load shared object无法安装 RHIPE。错误:无法加载共享对象
【发布时间】:2014-07-15 18:40:49
【问题描述】:

我正在尝试按照以下说明为 R 安装 RHIPE:

https://www.datadr.org/install.html

我已经成功完成了一切,除了最后一步:安装 RHIPE。我已按照说明设置了所有环境变量。我什至通过编辑 HOME 文件夹中的 .bashrc 文件来设置 LD_LIBRARY_PATH。我可以运行并获取(即使在重新启动终端后):

$echo "$LD_LIBRARY_PATH"
/home/cluster1/users/user/R/lib64/R/lib

但是当我尝试安装 RHIPE.tar.gz 时。我将收到以下错误消息。似乎 R CMD INSTALL RHIPE.tar.gz 指向一个未知的 R 文件夹(正确吗?)。我已经搜索了几个网站,但发布相同问题的人仍在等待答案。所以我在 Stack Overflow 上再次提出这个话题。请帮忙!谢谢。

* installing to library â/home/cluster1/R/x86_64-unknown-linux-gnu-library/2.15â
* installing *source* package âRhipeâ ...
** libs
g++ -I/home/cluster1/users/User/R/lib64/R/include -DNDEBUG  -I/usr/local/include    -fpic  -g -O2  -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -c rexp.pb.cc -o rexp.pb.o
g++ -I/home/cluster1/users/User/R/lib64/R/include -DNDEBUG  -I/usr/local/include    -fpic  -g -O2  -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -c message.cc -o message.o
g++ -I/home/cluster1/users/User/R/lib64/R/include -DNDEBUG  -I/usr/local/include    -fpic  -g -O2  -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -c fileio.cc -o fileio.o
g++ -I/home/cluster1/users/User/R/lib64/R/include -DNDEBUG  -I/usr/local/include    -fpic  -g -O2  -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -c signal.cc -o signal.o
g++ -I/home/cluster1/users/User/R/lib64/R/include -DNDEBUG  -I/usr/local/include    -fpic  -g -O2  -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -c display.cc -o display.o
g++ -I/home/cluster1/users/User/R/lib64/R/include -DNDEBUG  -I/usr/local/include    -fpic  -g -O2  -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -c reducer.cc -o reducer.o
g++ -I/home/cluster1/users/User/R/lib64/R/include -DNDEBUG  -I/usr/local/include    -fpic  -g -O2  -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -c mapper.cc -o mapper.o
g++ -I/home/cluster1/users/User/R/lib64/R/include -DNDEBUG  -I/usr/local/include    -fpic  -g -O2  -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -c mapreduce.cc -o mapreduce.o
g++ -I/home/cluster1/users/User/R/lib64/R/include -DNDEBUG  -I/usr/local/include    -fpic  -g -O2  -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -c main.cc -o main.o
g++  rexp.pb.o message.o fileio.o signal.o display.o reducer.o mapper.o mapreduce.o main.o -o ../inst/bin/RhipeMapReduce -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -fpic `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --ldflags` `pkg-config --libs protobuf`  `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --ldflags`
chmod 755 ../inst/bin/RhipeMapReduce
g++ -I/home/cluster1/users/User/R/lib64/R/include -DNDEBUG  -I/usr/local/include    -fpic  -g -O2  -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -c serverbridge.cc -o serverbridge.o
g++ -I/home/cluster1/users/User/R/lib64/R/include -DNDEBUG  -I/usr/local/include    -fpic  -g -O2  -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -c rhooks.cc -o rhooks.o
rhooks.cc: In function âSEXPREC* unserializeUsingPB(SEXPREC*)â:
rhooks.cc:59: warning: integer overflow in expression
g++ -I/home/cluster1/users/User/R/lib64/R/include -DNDEBUG  -I/usr/local/include    -fpic  -g -O2  -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -c md5.c -o md5.o
g++ rexp.pb.o message.o serverbridge.o fileio.o rhooks.o md5.o -o Rhipe.so  -shared -I.  -g -O2  -DUSEAUTOSHORT -DHAVE_UINTPTR_T    `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `pkg-config --cflags protobuf` -fpic `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --ldflags` `pkg-config --libs protobuf`  `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --cppflags` `/home/cluster1/users/User/R/lib64/R/bin/R CMD config --ldflags`
installing to /home/cluster1/R/x86_64-unknown-linux-gnu-library/2.15/Rhipe/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
**Error : .onLoad failed in loadNamespace() for 'Rhipe', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/home/cluster1/R/x86_64-unknown-linux-gnu-library/2.15/Rhipe/libs/Rhipe.so':
libprotobuf.so.7: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed**
* removing â/home/cluster1/R/x86_64-unknown-linux-gnu-library/2.15/Rhipeâ

【问题讨论】:

  • 安装好像找不到 ripe.so 文件。在哪里下载 ripe.so 文件?能不能把 ripe.7.31.tar.gz 解压出来得到 ripe.so 文件?请帮忙!

标签: r hadoop


【解决方案1】:

我找到了解决方案!来自

的指令

https://www.datadr.org/install.html

错了。

我找到了这个:

https://github.com/tesseradata/RHIPE/

将 LD_LIBRARY_PATH 设置为您安装 Protobuf 的位置,将其指向 ../protobuf/lib,然后它就可以工作了。

【讨论】:

  • 当前的 Rhipe.0.73 r-package 与最新的 Cloudera Hadoop (CDH5) 不兼容。即使您已成功安装 Rhipe0.73,您仍然会收到错误消息。我尝试降级到 CDH4.7,现在 R/Cloudera Hadoop 工作正常! (请记住,CDH 不附带生产就绪的纱线)
猜你喜欢
  • 2016-08-16
  • 2023-03-08
  • 1970-01-01
  • 2017-03-11
  • 1970-01-01
  • 1970-01-01
  • 2019-01-25
  • 1970-01-01
  • 2018-09-17
相关资源
最近更新 更多