About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Troubleshooting
Problem
Installed the following R Package as a ADMIN. Package installation has been successful with the following comments from DSX.
Installing package into ‘/user-home/_global_/R’
(as ‘lib’ is unspecified).
However, while trying to reference these libraries with in R Code, we are getting an error. ( e.g: Cario package)
Warning: Error in : .onLoad failed in loadNamespace() for 'Cairo', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/user-home/_global_/R/Cairo/libs/Cairo.so':
libjpeg.so.8: cannot open shared object file: No such file or directory
Steps followed to install R PKG
- Login to DSX as a ADMIN
- Open a notebook and set the kernel to be R3.4.3 with DSX Spark 2.2.1
- install.packages("Cairo")
Symptom
Warning: Error in : .onLoad failed in loadNamespace() for 'Cairo', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/user-home/_global_/R/Cairo/libs/Cairo.so':
libjpeg.so.8: cannot open shared object file: No such file or directory
Cause
need to install the library from Rstudio not the notebook
Environment
DSXHi 1.2.0.3 on Linux
Resolving The Problem
Install R Packages using the "install.packages()" command in RStudio rather than R Notebook
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSKKD2","label":"IBM Data Science Experience Local"},"Component":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"1.2.0.3","Edition":"DSXHi","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Was this topic helpful?
Document Information
More support for:
IBM Data Science Experience Local
Software version:
1.2.0.3
Operating system(s):
Linux
Document number:
732307
Modified date:
20 September 2018
UID
ibm10732307