IBM Support

Error installing rJava after installation of R

Troubleshooting


Problem

Error while configuring java for R

Symptom

command >> R CMD javareconf -e

Java interpreter : /opt/ibm/biginsights/jdk/jre/bin/java
Java version : 1.7.0
Java home path : /opt/ibm/biginsights/jdk
Java compiler : /opt/ibm/biginsights/jdk/bin/javac
Java headers gen.: /opt/ibm/biginsights/jdk/bin/javah
Java archive tool: /opt/ibm/biginsights/jdk/bin/jar


trying to compile and link a JNI program

detected JNI cpp flags : -I$(JAVA_HOME)/include
-I$(JAVA_HOME)/include/linux
detected JNI linker flags : -L$(JAVA_HOME)/jre/lib/amd64/compressedrefs
-ljvm

gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG
-I/opt/ibm/biginsights/jdk/include
-I/opt/ibm/biginsights/jdk/include/linux -I/usr/local/include -fpic
-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fpic
-fPIC -c conftest.c -o conftest.o

gcc -m64 -std=gnu99 -shared -L/usr/lib64/R/lib -ldl -lpthread -lc -lrt
-lcurl -lidn -lssh2 -lssh2 -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5
-lkrb5 -lk5crypto -lcom_err -lldap -lz -lrt -o conftest.so conftest.o
-L/opt/ibm/biginsights/jdk/jre/lib/amd64/compressedrefs -ljvm
-L/usr/lib64/R/lib -lR

/usr/bin/ld: cannot find -lcurl

collect2: ld returned 1 exit status

make: *** [conftest.so] Error 1

Unable to compile a JNI program


The following Java variables have been exported:

JAVA_HOME JAVA JAVAC JAVAH JAR JAVA_LIBS JAVA_CPPFLAGS
JAVA_LD_LIBRARY_PATH

Running: /bin/bash

[{"Product":{"code":"SSCRJT","label":"IBM Db2 Big SQL"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"}],"Version":"3.0.0.2","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
IBM Db2 Big SQL

Software version:
3.0.0.2

Operating system(s):
Linux

Document number:
281883

Modified date:
08 April 2021

UID

swg21985101

Manage My Notification Subscriptions