1

似乎没有Rstemsentiment包装的 twitter 情绪分析是困难的。我正在尝试Rstem使用 tar.gz 文件安装这个和情感包(因为在 omegahat 或 Timothy P. Jurka 的 github 中没有可用的 Windows 二进制文件),但它给出了一个错误:

软件包“Rstem”的安装具有非零退出状态

我什至尝试了命令提示符。这给出了以下错误。任何线索如何解决它?我的系统是 Windows 7,R 2.15,Rstudio。

    D:\R Projects>R CMD INSTALL Rstem_0.4-1.tar.gz
* installing to library 'D:/R-Econometrics/R-2.15.1/library'
* installing *source* package 'Rstem' ...
** libs

*** arch - i386
D:/R-Econometrics/R-2.15.1/etc/i386/Makeconf:194: warning: overriding recipe for
 target `.m.o'
D:/R-Econometrics/R-2.15.1/etc/i386/Makeconf:187: warning: ignoring old recipe f
or target `.m.o'
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c api.c -o api.o
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c danish_stem.c -o danish_stem.o
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c dutch_stem.c -o dutch_stem.o
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c english_stem.c -o english_stem.o
english_stem.c: In function 'r_prelude':
english_stem.c:376:5: warning: label 'lab1' defined but not used
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c finnish_stem.c -o finnish_stem.o
finnish_stem.c: In function 'r_case':
finnish_stem.c:448:21: warning: unused variable 'm'
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c french_stem.c -o french_stem.o
french_stem.c: In function 'french_stem':
french_stem.c:951:25: warning: unused variable 'm'
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c german_stem.c -o german_stem.o
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c mytest.c -o mytest.o
mytest.c: In function 'S_stemWords':
mytest.c:76:3: warning: pointer targets in passing argument 1 of 'Rf_mkChar' dif
fer in signedness
D:/R-Econometrics/R-2.15.1/include/Rinternals.h:628:6: note: expected 'const cha
r *' but argument is of type 'symbol *'
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c norwegian_stem.c -o norwegian_stem.o
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c portuguese_stem.c -o portuguese_stem.o
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c russian_stem.c -o russian_stem.o
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c spanish_stem.c -o spanish_stem.o
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c swedish_stem.c -o swedish_stem.o
gcc  -I"D:/R-Econometrics/R-2.15.1/include" -DNDEBUG -I. -I../Snowball/q
 -O3 -Wall  -std=gnu99 -mtune=core2 -c utilities.c -o utilities.o
process_begin: CreateProcess(NULL, basename Rstem.dll .dll, ...) failed.
process_begin: CreateProcess(NULL, basename Rstem.dll .dll, ...) failed.
process_begin: CreateProcess(NULL, basename Rstem.dll .dll, ...) failed.
"zapi.o danish_stem.o dutch_stem.o english_stem.o finnish_stem.o french_stem.o g
erman_stem.o mytest.o norwegian_stem.o portuguese_stem.o russian_stem.o spanish_
stem.o swedish_stem.o utilities.o" was unexpected at this time.
make: *** [Rstem.dll] Error 255
ERROR: compilation failed for package 'Rstem'
* removing 'D:/R-Econometrics/R-2.15.1/library/Rstem'
4

0 回答 0