SJavaのコンパイル - アールメカブ




Omegahatのを普通に R CMD INSTALL -c SJava_0.69-0.tar.gz とすると,私のUbuntu上ではこんなエラーが出まくる.

gcc -std=gnu99 -g -O2 -D_R_ -I/usr/local/lib/R/include -I/usr/local/lib/R/include/R_ext -I/tmp/R.INSTALL.L16016/SJava/src/RSJava -I. -I/tmp/R.INSTALL.L16016/SJava/inst/include -I/usr/lib/jvm/java-6-sun- -I/usr/lib/jvm/java-6-sun- -c CtoJava?.c CtoJava?.cweb:148: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'vm1_args' CtoJava?.cweb:215: error: static declaration of 'std_env' follows non-static declaration CtoJava?.cweb:195: error: previous declaration of 'std_env' was here CtoJava?.cweb: In function 'create_Java_vm': CtoJava?.cweb:256: error: 'vm1_args' undeclared (first use in this function) CtoJava?.cweb:256: error: (Each undeclared identifier is reported only once CtoJava?.cweb:256: error: for each function it appears in.) make: *** [CtoJava?.o] Error 1

そこで CtoJava?.c, CtoJava?.h を編集する.

Link: Programming(3946d) 日録2008年_2月(4501d)
Last-modified: 2008-01-20 (日) 15:40:36 (4902d)