我正在嘗試安裝tm庫的0.6-2版本。我從archive下載了tar.gz文件,並在RStudio中選擇了Tools - > Archive - > Package Archive File來安裝它。安裝R中的舊包時出錯
但是,我收到以下錯誤。有人可以幫助我解決這個問題,請:
- installing source package 'tm' ... ** package 'tm' successfully unpacked and MD5 sums checked ** libs
* arch - i386 c:/Rtools/mingw_32/bin/gcc -I"C:/PROGRA~1/R/R-33~1.2/include" -DNDEBUG -I"d:/Compiler/gcc-4.9.3/local330/include" -O3 -Wall -std=gnu99 -mtune=core2 -c copy.c -o copy.o c:/Rtools/mingw_32/bin/gcc: not found make: * [copy.o] Error 127
Warning: running command 'make -f "C:/PROGRA~1/R/R-33~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-33~1.2/share/make/winshlib.mk" SHLIB="tm.dll" OBJECTS="copy.o"' had status 2 ERROR: compilation failed for package 'tm' * removing 'C:/Users/608447283/Documents/R/win-library/3.3/tm'
Warning in install.packages : running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\608447283\Documents\R\win-library\3.3" "C:/Users/608447283/desktop/tm_0.6-2.tar.gz"' had status 1
Warning in install.packages : installation of package ‘C:/Users/608447283/desktop/tm_0.6-2.tar.gz’ had non-zero exit status
我已經安裝了Rtools,但我只安裝了64位版本不是32位。這導致了這個問題。你的回答幫助我正確地看待它。謝謝。 – Anish
@np。如果答案有幫助,請提高。謝謝。 – Crt