r - RWeka installation on mac -
i trying install rweka package on mac.
os version:
10.9.5
java version installed:
java version "1.7.0_75"
java(tm) se runtime environment (build 1.7.0_75-b13)
java hotspot(tm) 64-bit server vm (build 24.75-b04, mixed mode)
after executing
install.packages("rweka")
when try execute
library(rweka)
the following error displayed
error : .onload failed in loadnamespace() 'rwekajars', details:
call: .jinit()
error: jni_getcreatedjavavms returned -1error: package or namespace load failed ‘rweka’
javavm: requested java version ((null)) not available. using java @ "" instead.
javavm: failed load jvm: /bundle/libraries/libserver.dylib
javavm fatal: failed load jvm library.
the output of command
r cmd javareconf
is
xcode-select: note: no developer tools found @ '/applications/xcode.app', requesting install. choose option in dialog download command line developer tools.
xcode-select: note: no developer tools found @ '/applications/xcode.app', requesting install. choose option in dialog download command line developer tools.
xcode-select: note: no developer tools found @ '/applications/xcode.app', requesting install. choose option in dialog download command line developer tools.
xcode-select: note: no developer tools found @ '/applications/xcode.app', requesting install. choose option in dialog download command line developer tools.
xcode-select: note: no developer tools found @ '/applications/xcode.app', requesting install. choose option in dialog download command line developer tools.
java interpreter : /usr/bin/java
java version : 1.7.0_75
java home path : /library/java/javavirtualmachines/jdk1.7.0_75.jdk/contents/home/jre
java compiler : /usr/bin/javac
java headers gen.: /usr/bin/javah
java archive tool: /usr/bin/jar
non-system java on os xtrying compile , link jni program
detected jni cpp flags : -i$(java_home)/../include -i$(java_home)/../include/darwin
detected jni linker flags : -l/users/amlanroy/library/java/extensions -l/library/java/extensions -l/network/library/java/extensions -l/system/library/java/extensions -l/usr/lib/java -l. -ljvm
xcode-select: note: no developer tools found @ '/applications/xcode.app', requesting install. choose option in dialog download command line developer tools.
unable compile jni programjava_home : /library/java/javavirtualmachines/jdk1.7.0_75.jdk/contents/home/jre
java library path:
jni cpp flags :
jni linker flags :
updating java configuration in /library/frameworks/r.framework/resources
done.
please let me know if has faced same issue , knows solution.
i had problems loading packages opennlp, xlsx, rweka, ... , got same error message you. command worked me on os x 10.11.3:
sudo ln -s $(/usr/libexec/java_home)/jre/lib/server/libjvm.dylib /usr/local/lib
Comments
Post a Comment