При установке r Java возникают некоторые проблемы. Следуйте инструкциям по устранению неполадок, чтобы запустить R CMD javareconf.
Получите проблему с программой JNI и найдите / bin / sh: /usr/local/Cellar/gcc/9.3.0/bin/gcc-7: Нет такого файла или каталога.
**/usr/local/Cellar/gcc/9.3.0/bin/gcc-7** gcc-7 doesn’t exist in that folder, that should be gcc-9. I don’t know why it’s there, how can I correct that to gcc-9?
Java interpreter : /usr/bin/java
Java version : 14
Java home path : /Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home
Java compiler : /usr/bin/javac
Java headers gen.: /usr/bin/javah
Java archive tool: /usr/bin/jar
trying to compile and link a JNI program
detected JNI cpp flags : -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/darwin
detected JNI linker flags : -L$(JAVA_HOME)/lib/server -ljvm
/usr/local/Cellar/gcc/9.3.0/bin/gcc-7 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home/include/darwin -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c conftest.c -o conftest.o
/bin/sh: /usr/local/Cellar/gcc/9.3.0/bin/gcc-7: No such file or directory
make: *** [conftest.o] Error 127
Unable to compile a JNI program
JAVA_HOME : /Library/Java/JavaVirtualMachines/jdk-14.jdk/Contents/Home
Java library path:
JNI cpp flags :
JNI linker flags :
Updating Java configuration in /Library/Frameworks/R.framework/Resources
Done.