我想知道是否有人对我的错误消息有经验或有任何建议。
当我运行./configure文件时,它没有错误运行。当我运行make文件时,我得到
make -C src JRI.jar
gcc-4.2 -arch x86_64 -std=gnu99 -c -o Rengine.o Rengine.c -g -Iinclude -g -O2 -I/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/include -I/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/include/. -fno-common -I/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/include -I/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/include/. -I/Library/Frameworks/R.framework/Resources/include -I/Library/Frameworks/R.framework/Resources/include/x86_64
Rengine.c: In function ‘Java_org_rosuda_JRI_Rengine_rniParse’:
Rengine.c:89: error: too few arguments to function ‘R_ParseVector’
Rengine.c: In function ‘Java_org_rosuda_JRI_Rengine_rniRunMainLoop’:
Rengine.c:181: warning: implicit declaration of function ‘run_Rmainloop’
Rengine.c: In function ‘Java_org_rosuda_JRI_Rengine_rniGetList’:
Rengine.c:313: warning: implicit declaration of function ‘jri_error’
Rengine.c: In function ‘Java_org_rosuda_JRI_Rengine_rniStop’:
Rengine.c:377: warning: implicit declaration of function ‘getpid’
make[1]: *** [Rengine.o] Error 1
make: *** [src/JRI.jar] Error 2
我在其他论坛上看到过相同或相似的问题,但是似乎没有人回答过这个问题。想知道是否有人知道这对stackoverflow意味着什么。
最佳答案
尝试改用rJava发行版(JRI现在是rJava的一部分)。
关于java - 安装JRI(R到Java)时遇到麻烦,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/6734964/