我试图在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二进制文件。以下是关于我的版本的信息:
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版)中完成了所有这些工作。还有没有人遇到过这个问题?进入终端来尝试构建这个库也没有成功。
发布于 2013-05-22 06:32:30
错误消息
sh: make: command not found建议您未安装XCode工具的命令行版本。或者您可能会这样做,但只针对x64,在这种情况下,您应该告诉R CMD INSTALL (在命令行上)不要为这两种体系结构都安装。
https://stackoverflow.com/questions/16680435
复制相似问题