这个问题与Issues in Installing Rstem Package有关,但我认为前一个问题的答案对我的案例不起作用。
我已下载源包,但安装无法正常运行。欢迎任何帮助!
install.packages("~/Downloads/Rstem_0.4-1.tar.gz", repos = NULL, type = "source")
这是我得到的错误:
Warning in install.packages :
package ‘~/Downloads/Rstem_0.4-1.tar.gz’ is not available (for R version 2.15.3)
Installing package(s) into ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library’
(as ‘lib’ is unspecified)
* installing *source* package ‘Rstem’ ...
** libs
*** arch - i386
sh: make: command not found
ERROR: compilation failed for package ‘Rstem’
* removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/Rstem’
Warning in install.packages :
installation of package ‘/Users/mbtangotan/Downloads/Rstem_0.4-1.tar.gz’ had non-zero exit status
也尝试过:
install.packages("Rstem", repos = "http://www.omegahat.org/R", type="source")
将此作为输出:
trying URL 'http://www.omegahat.org/R/src/contrib/Rstem_0.4-1.tar.gz'
Content type 'application/x-gzip' length 274336 bytes (267 Kb)
opened URL
downloaded 267 Kb
* installing *source* package ‘Rstem’ ...
** libs
*** arch - i386
sh: make: command not found
ERROR: compilation failed for package ‘Rstem’
* removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/Rstem’
The downloaded source packages are in
‘/private/var/folders/t3/f4r4rwmn7xl80skj6h35ftnh0000gn/T/RtmpWKxXs2/downloaded_packages’
Warning message:
In install.packages("Rstem", repos = "http://www.omegahat.org/R", :
installation of package ‘Rstem’ had non-zero exit status
R版本:2.15.3,x86_64,OSX。
答案 0 :(得分:3)
如果找不到make
,则表示您需要安装适合您未指定版本的“OSX”的XCode。
如果您确实已经安装了XCode,那么这应该会成功(至少它刚刚在MacPro上运行OSX 10.6.8,R 3.0.0 RC和XCode 3.2.6(1761):
install.packages("Rstem", repos = "http://www.omegahat.org/R", type="source")
是否可能存在其他问题,我无法分辨。包装已从CRAN中移除,因此沼泽中可能还有其他短吻鳄。
答案 1 :(得分:1)
FWIW,我刚刚向CRAN上传了一个名为SnowballC的新软件包,它实现了与Rstem相同的功能并使用相同的算法。 Mac OS X和Windows的二进制包将在几小时/几天内提供。