【发布时间】: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 文件?请帮忙!