如何在 ubuntu 12.04 中安装 R 的 fftw3 包? [英] How to install the fftw3 package of R in ubuntu 12.04?
问题描述
我正在尝试通过 R 控制台安装 fftw3 包
I am trying to install the fftw3 package through R console
>install.packages("fftw")
执行此命令后,它要求选择起重机镜像.我选择了起重机镜像,然后出现以下错误:
After this command it is asking to select the cran mirror.I have selected the cran mirror then following error occurs:
Loading Tcl/Tk interface ... done
Warning: unable to access index for repository http://ftp.iitm.ac.in/cran/src/contrib
Warning messages:
1: In open.connection(con, "r") :
unable to connect to 'cran.r-project.org' on port 80.
2: In getDependencies(pkgs, dependencies, available, lib) :
package ‘fftw’ is not available (for R version 2.14.1)
当我尝试 fftw3 时,会出现以下错误:
And When I am trying for fftw3 then following error occurs:
> install.packages("fftw3")
Installing package(s) into ‘/root/R/x86_64-pc-linux-gnu-library/2.14’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository http://ftp.iitm.ac.in/cran/src/contrib
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘fftw3’ is not available (for R version 2.14.1)
谁能帮我解决这个问题?
Can anyone help me out of this?
推荐答案
正如 Paul 所说,这可能不是 R 包.有一个 R 包是 FFTW 库的包装器,也称为 fftw,您应该安装它:
As Paul said, that's probably not an R package. There is an R package that is a wrapper for the FFTW library, also called fftw, you should install that:
在 Ubuntu 中,您仍然需要正确安装 fftw 库的系统要求,您可能可以通过
In Ubuntu you have then still the system requirement to have a proper installed fftw library, that you probably can solve via
sudo apt-get install fftw3 fftw3-dev pkg-config
这篇关于如何在 ubuntu 12.04 中安装 R 的 fftw3 包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!