5

两天来,我一直在尝试使用 Lapack 安装 Openblas/atlas 并在 R 中使用它。这让我发疯。我已经到了无法再思考的地步了。

我的服务器使用:
Red Hat Enterprise Linux Server release 6.6 (Santiago)

这是我到目前为止安装的:

[root@tpdb05 atlas]# yum install atlas.x86_64 blas.x86_64 lapack.x86_64 Loaded plugins: product-id, refresh-packagekit, rhnplugin, security, subscription-manager
    Setting up Install Process
    Package atlas-3.8.4-2.el6.x86_64 already installed and latest version
    Package blas-3.2.1-4.el6.x86_64 already installed and latest version
    Package lapack-3.2.1-4.el6.x86_64 already installed and latest version
[root@tpdb05 ruser]#


yum install lapack.i686
    Installed:
    lapack.i686 0:3.2.1-4.el6

    Dependency Installed:
    blas.i686 0:3.2.1-4.el6                          glibc.i686 0:2.12-1.166.el6_7.3        libgfortran.i686 0:4.4.7-16.el6
    nss-softokn-freebl.i686 0:3.14.3-23.el6_7

    Dependency Updated:
    glibc.x86_64 0:2.12-1.166.el6_7.3         glibc-common.x86_64 0:2.12-1.166.el6_7.3    glibc-devel.x86_64 0:2.12-1.166.el6_7.3
    glibc-headers.x86_64 0:2.12-1.166.el6_7.3 nss-softokn-freebl.x86_64 0:3.14.3-23.el6_7


yum install atlas.i686
    Installed:
        atlas.i686 0:3.8.4-2.el6

[root@tpdb05 SRPMS]# yum install rpm-build
    Installed:
    rpm-build.x86_64 0:4.8.0-47.el6

    Dependency Installed:
    redhat-rpm-config.noarch 0:9.0.3-44.el6

    Dependency Updated:
    rpm.x86_64 0:4.8.0-47.el6             rpm-libs.x86_64 0:4.8.0-47.el6             rpm-python.x86_64 0:4.8.0-47.el6

[root@tpdb05 SRPMS]# yum install atlas-c++-devel.x86_64
    Installed:
      atlas-c++-devel.x86_64 0:0.6.1-1.el5.rf

    Dependency Installed:
      atlas-c++.x86_64 0:0.6.1-1.el5.rf

我尝试过的几个来源都没有成功: 1 2 3

R手册提到以下内容:

指定 ATLAS 的常用方法是通过
--with-blas="-lf77blas -latlas"

但是我不知道在哪里使用这个命令。在安装 R? 我很确定应该可以在库之间简单地交换..

如何让 R 使用 atlas/openblas/lapack 库?

4

0 回答 0