Skip to content
Prev 787 / 3656 Next

ubuntu configuration problem "Couldnt get a file descriptior referring to the console"

On Mon, Jun 15, 2009 at 9:18 AM, Dirk Eddelbuettel<edd at debian.org> wrote:
Ah, I'm using the ubuntu package from CRAN, I think. I download it
from the Iowa state mirror:

deb http://rh-mirror.linux.iastate.edu/CRAN/bin/linux/ubuntu jaunty/ #iastate R
I've downloaded the R source code and I see where the problem
originates.  I think the DEB packages for ubuntu must be built on a
system that does not have any of the expected pdf viewers.  If you
look in the R configure script, it sets a macro variable for the
viewer

## PDF viewer
for ac_prog in ${R_PDFVIEWER} acroread acroread4 evince xpdf gv
gnome-gv ggv kghostview open gpdf

When I buld R on my system, it finds acroread and that gets put into
the /etc/R/Renviron file for the  PDFVIEWER.

On the system where R is built for CRAN, it must not find acroread,
evince, or anything until "open".

I *THINK* it might be slightly more "in style" to make the preferred
pdf viewer xdg-open.  I've had some ups and downs with xdg-open
because it is poorly documented (that's another trauma discussed
elsewhere).  But, if you are going by the Ubuntu community standard,
xdg-open should be first.

pj