Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 14 years ago

kcrisman gravatar image

This isn't an answer per se (you and I've discussed this before!), but at least I thought I'd put the following as the relevant Trac ticket: http://trac.sagemath.org/sage_trac/ticket/8868

I am puzzled as to why your Ubuntu installation isn't compiling with png support, though. R install guide says

‘libX11’, ‘libX11-devel’, ‘libXt’ and ‘libXt-devel’.

is needed, but you are right that xorg-dev should give you this. In our spkg-install it says

if [ -f /usr/include/X11/Xwindows.h ]; then
    XSUPPORT=yes

so perhaps that isn't detecting your stuff. Thanks to David Kirkby, we also have

else
   if [ "x`uname`" = xSunOS ] && [ -f /usr/X11/lib/libXv.so ] ; then 
       XSUPPORT=yes

but that only would work on Solaris. We really just need to ask on r-devel about this; r-help has been of no help, but I've been reluctant to join r-devel since I know very little about R internals. But we just need to figure out what R precisely needs to allow png, and then have it compile every time those things are there.

click to hide/show revision 2
No.2 Revision

This isn't an answer per se (you and I've discussed this before!), but at least I thought I'd put the following as the relevant Trac ticket: http://trac.sagemath.org/sage_trac/ticket/8868#8868.

I am puzzled as to why your Ubuntu installation isn't compiling with png support, though. R install guide says

‘libX11’, ‘libX11-devel’, ‘libXt’ and ‘libXt-devel’.

is needed, but you are right that xorg-dev should give you this. In our spkg-install it says

if [ -f /usr/include/X11/Xwindows.h ]; then
    XSUPPORT=yes

so perhaps that isn't detecting your stuff. Thanks to David Kirkby, we also have

else
   if [ "x`uname`" = xSunOS ] && [ -f /usr/X11/lib/libXv.so ] ; then 
       XSUPPORT=yes

but that only would work on Solaris. We really just need to ask on r-devel about this; r-help has been of no help, but I've been reluctant to join r-devel since I know very little about R internals. But we just need to figure out what R precisely needs to allow png, and then have it compile every time those things are there.