我正在尝试在 R (http://cran.r-project.org/web/packages/maxent/index.html)中加载 maxent 包,但它一直返回错误:
Error: package ‘maxent’ is not installed for 'arch=x86_64'
以上是尝试从 CRAN 存储库加载它时发生的情况。具体来说,当尝试从源代码构建时,它会:
> install.packages('maxent_1.3.3.tar.gz', repos = NULL, type = 'source')
Warning in install.packages :
package ‘maxent_1.3.3.tar.gz’ is not available (for R version 2.15.2)
Installing package(s) into ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library’
(as ‘lib’ is unspecified)
* installing *source* package ‘maxent’ ...
** package ‘maxent’ successfully unpacked and MD5 sums checked
** libs
*** arch - i386
sh: make: command not found
ERROR: compilation failed for package ‘maxent’
* removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/maxent’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/maxent’
我尝试从源代码构建库,以及使用 Mac OSX 二进制文件。以下是有关我的版本的信息:
platform x86_64-apple-darwin9.8.0
arch x86_64
os darwin9.8.0
system x86_64, darwin9.8.0
status
major 2
minor 15.2
year 2012
month 10
day 26
svn rev 61015
language R
version.string R version 2.15.2 (2012-10-26)
nickname Trick or Treat
我在 RStudio(版本 0.97.312)中做这一切。有没有其他人遇到过这个问题?进入终端尝试构建库也没有奏效。