我最近做毕业设计,其中需要用到一个文章的作者附的自己写的package,R的cran上面并没有,只能从作者自己主页上把包下载下来然后安装。我遇到了如下的问题,我谷歌了很多解决方案,包括安装rtools什么的,但依然安装不上,在这个问题上已经花了一周多了,实在没办法了,希望能够得到大家的帮助。无论大家的方法是否能帮到我我都感谢大家!
我的命令以及反馈的错误是这样的:
install.packages("D:/SVMW_0.2.tar.gz", repos = NULL, type = "source")
Installing package into ‘C:/Users/wtz/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
* installing *source* package 'SVMW' ...
**********************************************
WARNING: this package has a configure script
It probably needs manual configuration
**********************************************
** libs
*** arch - i386
c:/Rtools/mingw_32/bin/gcc -I"E:/R/R-3.3.3/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c Rsvm.c -o Rsvm.o
c:/Rtools/mingw_32/bin/gcc: not found
make: *** [Rsvm.o] Error 127
Warning: 运行命令'make -f "E:/R/R-3.3.3/etc/i386/Makeconf" -f "E:/R/R-3.3.3/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="SVMW.dll" OBJECTS="Rsvm.o svm.o"'的状态是2
ERROR: compilation failed for package 'SVMW'
* removing 'C:/Users/wtz/Documents/R/win-library/3.3/SVMW'
* restoring previous 'C:/Users/wtz/Documents/R/win-library/3.3/SVMW'
Warning in install.packages :
running command '"E:/R/R-3.3.3/bin/x64/R" CMD INSTALL -l "C:\Users\wtz\Documents\R\win-library\3.3" "D:/SVMW_0.2.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘D:/SVMW_0.2.tar.gz’ had non-zero exit status


雷达卡





京公网安备 11010802022788号







