rjava

gcc: error: libgomp.spec: No such file or directory with Amazon Linux 2017.09.1

跟風遠走 提交于 2019-11-29 04:50:50
I'm trying to install the rJava package in R running on an Amazon Lightsail instance (Amazon Linux 2017.09.1). I keep getting an error that gcc can't find libgomp.spec I've located the file at /usr/lib/gcc/x86_64-amazon-linux/6.4.1/libgomp.spec and I've tried setting up a symbolic link to it, but I haven't been able to figure out where to put the symbolic link so gcc can find it. For example, this doesn't seem to work: ln -s /usr/lib/gcc/x86_64-amazon-linux/6.4.1/libgomp.spec /usr/local/lib64/libgomp.spec Does anyone know where to put the symbolic link so gcc can find it? There is probably a

trouble installing and loading rJava on mac El Capitan

放肆的年华 提交于 2019-11-29 04:36:30
Have issue installing rJava, tried most troubleshooting steps here and doesn't work. It's returning error Loading required package: rJava Error: package or namespace load failed for 'rJava': .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs/ rJava.so': I'm on latest ver of R/Rstudio and Mac El Capitan I also tried this method 1 which didn't work sudo R CMD javareconf Then, in the R interpreter: install.packages('rJava', type='source')

rJava is not picking up the correct Java version

馋奶兔 提交于 2019-11-28 23:55:23
I've been struggling with this problem for a while now. When I install rJava from R, it takes Java 1.6 instead of 1.8. I am using MAC OS 10.8.5 and these are the steps that I've already done. I've installed R. I have both Java 1.6 and 1.8 on my machine. I've reconfigures R from terminal using: sudo R CMD javareconf -n . Here is what the output looks like: Java interpreter : /usr/bin/java Java version : 1.8.0_25 Java home path : /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre Java compiler : /usr/bin/javac Java headers gen.: /usr/bin/javah Java archive tool: /usr/bin/jar Non

Can't install rJava on ubuntu system

假如想象 提交于 2019-11-28 22:53:51
I've seen a few posts related to this...but all the suggested solutions ive seen dont seem to work....I am running R in an EC2 instance and ran the following commands to try and install rJava but to no avail...any help would be greatly appreciated. > install.packages("rJava") Installing package(s) into ‘/home/ubuntu/R/library’ (as ‘lib’ is unspecified) trying URL 'http://cran.stat.nus.edu.sg/src/contrib/rJava_0.9-3.tar.gz' Content type 'application/x-gzip' length 537153 bytes (524 Kb) opened URL ================================================== downloaded 524 Kb * installing *source* package

How does one configure rJava on OSX to select the right JVM — .jinit() failing

99封情书 提交于 2019-11-28 20:43:36
I installed rJava by calling install.packages("rJava") -- no problems seen However when I call: library(rJava) .jinit() I get: JavaVM: requested Java version ((null)) not available. Using Java at "" instead. JavaVM: Failed to load JVM: /bundle/Libraries/libserver.dylib JavaVM FATAL: Failed to load the jvm library. Error in .jinit() : JNI_GetCreatedJavaVMs returned -1 I'm running OSX: Darwin MBP-2 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64 I have the following Sun JDK's installed: $ ls /Library/Java/JavaVirtualMachines/ jdk1.7.0

Cannot install library(xlsx) in R and look for an alternative

筅森魡賤 提交于 2019-11-28 12:43:37
I use R version 3.0.3. I was not able to install library(xlsx). Error message: Loading required package: rJava Error : .onLoad failed in loadNamespace() for 'rJava', details: call: inDL(x, as.logical(local), as.logical(now), ...) error: unable to load shared object 'C:/Program Files/R/R-3.0.3/library/rJava/libs/x64/rJava.dll': LoadLibrary failure: The specified module could not be found. I then tried to install rjava on its own. Got the error message below: library("rJava", lib.loc="C:/Program Files/R/R-3.0.3/library") Error : .onLoad failed in loadNamespace() for 'rJava', details: call: inDL

Error while loading rJava

放肆的年华 提交于 2019-11-28 08:45:40
I get an error when I'd like to load rJava. JDK is installed. (I run R on a CentOS VM (cloudera demo vm cdh3u4)) > library(rJava) Error : .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/home/cloudera/R/x86_64-redhat-linux-gnu-library/2.15/rJava/libs/rJava.so': libjvm.so: cannot open shared object file: No such file or directory Error: package/namespace load failed for ‘rJava’ Is there something wrong with LD_LIBRARY_PATH settings? If yes, how can I fix that? I need rJava running that to install rhdfs

R: Cannot install rJava; what is r-api-3.4?

折月煮酒 提交于 2019-11-28 03:09:53
问题 I am on an Ubuntu 18.04 machine with R version 3.5.1, installed following this link. I am trying to install the CRAN package rJava , which I do the following way (as seen here): sudo apt-get install r-cran-rjava However, I get this: The following packages have unmet dependencies: r-cran-rjava : Depends: r-api-3.4 E: Unable to correct problems, you have held broken packages. But when I try: sudo apt-get install r-api-3.4 I get: E: Package 'r-api-3.4' has no installation candidate How to

R, loading rJava error

巧了我就是萌 提交于 2019-11-27 23:56:31
I'm running R (version 3.4.0) on macOS sierra (10.12.5) and I'm trying to use the xlsx library which requires the use of the rJava library. When I try to load rJava using library(rJava) in the R console (no difference if in RStudio or in the terminal), I get the following error message which I'm having trouble making sense of: Fehler: package or namespace load failed for ‘rJava’: .onLoad in loadNamespace() für 'rJava' fehlgeschlagen, Details: Aufruf: dyn.load(file, DLLpath = DLLpath, ...) Fehler: kann shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rJava/libs

Frustration using rJava to call a third party Java jar

人盡茶涼 提交于 2019-11-27 23:50:04
问题 I'm trying to use R to hook the Java code from the GSRad project. The GSRad Java code is available online and comes as a One-Jar project jar (I was not familiar with One-Jar until today). I can run the One-Jar file just dandy using the following command (after unzipping the file from the above link): java -jar gsrad_sample.jar When I pop open the gsrad_sample.jar file I see a jar titled clima_GSRAD-1.0.0.jar in the /lib/ directory which contains the class files I want to hook with R. I've