Moved from http://groups.google.com/group/sage-release/browse_thread/thread/e7d692cb7859162e on sage-release:
On Apr 29, 6:32 pm, Dan Drake <dr...@kaist.edu> wrote: > On Thu, 29 Apr 2010 at 08:46AM -0700, kcrisman wrote: > > It would be interesting to see what happens in your make log for R. > > Do you have /usr/include/X11/Xwindows.h ? That is what the spkg- > > install uses as a check for whether to build R with PNG support. Note > > that R should work well otherwise, just that the graphics won't > > work. > > I checked another build of alpha2, this one on a regular desktop Ubuntu > machine, and it doesn't have Xwindows.h, although it does have X and > Gnome and so on. So that machine saw the same test failures as the > server machine. Maybe we should just *always* build it with X support except on Mac? But presumably it needs some X library to connect to to do that...? > There should be a better way to tell R to build with PNG support. It > seems like it shouldn't need to link in X libraries just to spit out a > PNG file. I agree, but I think that's just how they do it (or you can use Cairo or Quartz (Mac)). See http://stat.ethz.ch/R-manual/R-patched/library/grDevices/html/png.html and http://stat.ethz.ch/R-manual/R-patched/library/grDevices/html/dev2bitmap.html. Also, from the R-help list: "Now it may be that you can't compile PNG support without X11 being there at compile time, but if you can compile R on a workstation with X11 support then that R should work find on your server to produce pngs even without X11 support there and then." A little more poking around finds the following workaround as well. In r_console(): > bitmap(file="plot.png", type = "png256", height = 6, width=6,res=72) > pie(c(12,5)) > dev.off() And then plot.png() should appear. This worked on my computer when > capabilities() returned FALSE for png, tiff, X11, aqua, and cairo (the new spkg was not installed). But I don't know how useful that would be, since it wouldn't allow for maximum flexibility. Ideas? - kcrisman -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org