[Rd] Compiling R-3.1.0 on debian with libpng/libjpeg
Prof Brian Ripley
ripley at stats.ox.ac.uk
Thu Jun 26 13:10:30 CEST 2014
On 26/06/2014 07:46, Preussner, Jens wrote:
> Dear r-developers,
>
> I currently face an issue while compiling R from source on a debian wheezy. When running the configure script (particularly with --enable-R-shlib --prefix=/packages/R/3.1.0/) I get a Makefile and the output
> ...
> Interfaces supported: X11
> External libraries: readline
> Additional capabilities: PNG, JPEG, NLS
> Options enabled: shared R library, shared BLAS, R profiling
> ...
>
> After compiling and checking the capabilities, R tells me the following:
>> capabilities()
> jpeg png tiff tcltk X11 aqua http/ftp sockets
> FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE
> libxml fifo cledit iconv NLS profmem cairo
> TRUE TRUE TRUE TRUE TRUE FALSE FALSE
>
> I already have R on another machine with jpeg/png capabilities, also compiled on my own. I crosschecked the versions of the libpng-* and libjpeg-* packages installed there and could not find any difference. Also returning to R-3.0.2 doesn't work.
> A last thing: The same question came up back in 2009, but there was no answer on the list.. https://stat.ethz.ch/pipermail/r-help/2009-December/222967.html
>
> Any suggestions how to get more information on what is going on here?
As you do not have capabilities for cairo nor X11, read ?png, e.g.
type: character string, one of ‘"Xlib"’ or ‘"quartz"’ (some OS X
builds) or ‘"cairo"’. The latter will only be available if
the system was compiled with support for cairo - otherwise
‘"Xlib"’ will be used. The default is set by
‘getOption("bitmapType")’ - the ‘out of the box’ default is
‘"quartz"’ or ‘"cairo"’ where available, otherwise ‘"Xlib"’.
R can be compiled without support for some or all of the types for
each of these devices: this will be reported if you attempt to use
them on a system where they are not supported. For ‘type =
"Xlib"’ they may not be usable unless the X11 display is available
to the owner of the R process.
So, the only type available to you appears to be "Xlib", and that
process does not have access to an X server.
The strongly recommended solution is to get cairographics working: see
http://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Useful-libraries-and-programs
> Many thanks and best regards,
>
> Jens
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-devel
mailing list