Skip to content

RRO on Ubuntu: Missing libraries. Error in RStudioGD() #233

@j-martens

Description

@j-martens

Two google group users reported the following:

Mariano Rico
Aug 27

I have installed RRO 3.2.1 in an Ubuntu machine in which there was an CRAN R version and RStudio.
I see that /usr/bin/R now points to the RRO (/usr/bin/R --> /usr//lib64/RRO-3.2.1/R-3.2.1/lib/R/bin/R ) and the starting message in Rstudio informs that it is using the RRO version with MKL.

However, when I try to plot something as simple as

plot(1:10)

I get this error

Error in RStudioGD() :
Shadow graphics device error: r error 4 (R code execution error)
In addition: Warning message:
In grDevices:::png("/tmp/RtmpR8RPl1/452e73a80ef34f46977c4cc704c4b35d.png", :
unable to open connection to X11 display ''

I have installed additional Ubuntu packages like the following ones with no results (of course, I restarted Rstudio after any instalation)
sudo apt-get install libx11-dev libxt-dev libpango1.0-dev r-cran-cairodevice

I am using a machine without display, but I did this previously on other similar machine without any problem.
In some forum I read that perhaps I have to compile RRO from sources with flags for not using xlib.
Do you have any information about this?

Best regards,

-Mariano
Click here to Reply

Le Big Z
Aug 27

Same here, running RStudio Server on Ubuntu 14.04 on a headless VM. I only get this Error on RRO 3.2.1, when i run the RRO 3.2.0 it does not occur:

$ /usr/lib64/RRO-3.2.0/R-3.2.0/bin/R

capabilities()
jpeg png tiff tcltk X11 aqua
TRUE TRUE TRUE TRUE FALSE FALSE
http/ftp sockets libxml fifo cledit iconv
TRUE TRUE TRUE TRUE TRUE TRUE
NLS profmem cairo ICU long.double libcurl
TRUE TRUE TRUE FALSE TRUE FALSE
$ /usr/lib64/RRO-3.2.1/R-3.2.1/bin/R
capabilities()
jpeg png tiff tcltk X11 aqua
FALSE FALSE FALSE TRUE FALSE FALSE
http/ftp sockets libxml fifo cledit iconv
TRUE TRUE TRUE TRUE TRUE TRUE
NLS profmem cairo ICU long.double libcurl
TRUE TRUE FALSE FALSE TRUE TRUE

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions