首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >R包安装:使用本地安装库

R包安装:使用本地安装库
EN

Stack Overflow用户
提问于 2014-08-29 20:57:49
回答 1查看 636关注 0票数 0

特别是,我正在尝试在linux上本地安装rggobi (我没有root访问权限)。所以我在本地安装了ggobi

代码语言:javascript
复制
cd ggobi-2.1.11/
./configure --prefix=~/my-apps/ --with-all-plugins
make
make install

一切都很顺利。然后我试着

代码语言:javascript
复制
$ R CMD INSTALL /tmp/Rtmp2PL6au/downloaded_packages/rggobi_2.1.20.tar.gz -l ~/R/x86_64-redhat-linux-gnu-library/3.1/
* installing *source* package ‘rggobi’ ...
** package ‘rggobi’ successfully unpacked and MD5 sums checked
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GGOBI... no
configure: error: Package requirements (ggobi >= 2.1.6) were not met:
No package 'ggobi' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
Alternatively, you may set the environment variables GGOBI_CFLAGS and GGOBI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
ERROR: configuration failed for package ‘rggobi’
* removing ‘/apps/infrafs1/rdahiya/R/x86_64-redhat-linux-gnu-library/3.1/rggobi’

我尝试在PKG_CONFIG_PATH中添加~/my-apps/lib/pkgconfig/,这对安装过程有一点帮助,但最后给出了不同的错误

代码语言:javascript
复制
building package indices
testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
unable to load shared object '~/R/x86_64-redhat-linux-gnu-library/3.1/rggobi/libs/rggobi.so': libggobi.so.0: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
removing ‘~/R/x86_64-redhat-linux-gnu-library/3.1/rggobi’

libggobi.so.0在~/my-apps/lib/中。有什么建议可以让R看正确的地方吗?

EN

回答 1

Stack Overflow用户

发布于 2014-08-29 22:26:24

我找到了一个(那个?)解决这个问题。在安装或运行将来要加载rggobi的R会话时,我必须设置LD_LIBRARY_PATH=~/my-apps/lib/。如果你有更干净的解决方案,请分享。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25568785

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档