小编fli*_*inz的帖子

在 ubuntu 上构建 R (cran) + rpy2 -> libRblas.so 未找到

我正在尝试在 ubuntu(11.04,natty narwhal)上构建 R(尝试 2.14.2 和 2.15)和 rpy2(2.2.6,python 2.7.1),以将其部署到自定义目录(以下称为 /home/ me/lib/R),因为我没有 root 访问权限,但需要比服务器上可用的版本更新。

构建等详细信息,但即使在运行 rpy2 测试时,我也总是收到以下错误:

/home/me/lib/pythonlib/lib/python/rpy2/rinterface/__init__.py in <module>()
---> 87 from rpy2.rinterface._rinterface import *
ImportError: libRblas.so: cannot open shared object file: No such file or directory
WARNING: Failure executing file: <experiments/arrangement/test_smacof_arrange.py>
Run Code Online (Sandbox Code Playgroud)

我确定我正在调用正确的 rpy2 模块(我的自定义模块),该模块是针对自定义构建的 R 版本构建的。为此,我正在执行以下操作:

  1. 我首先在 ubuntu 上构建 R-base

    wget http://cran.r-project.org/bin/linux/ubuntu/natty/r-base_2.14.2.orig.tar.gz
    # untar and go to directory
    
    # enable-R-shblib flag is needed for rpy2 linking, enable-BLAS-shlib was included
    # because I hoped to solve the problem, which doesnt …
    Run Code Online (Sandbox Code Playgroud)

ubuntu r building rpy2

4
推荐指数
1
解决办法
2766
查看次数

标签 统计

building ×1

r ×1

rpy2 ×1

ubuntu ×1