Hello I'm moving from using R 1.8 for Windows to using Linux (Redhat version 9) and I cannot get any graphics. However everything else maths, models equations is fine-- and much quicker. I built from the source file following the commands in the install manual.>plot(1:10, 1:10)does nothing! So clearly I have a problem with X Windows.> capabilities()jpeg png tcltk X11 GNOME libz http/ftp sockets FALSE FALSE FALSE FALSE FALSE TRUE TRUE TRUE libxml fifo cledit IEEE754 bzip2 PCRE TRUE TRUE TRUE TRUE TRUE TRUE I'm guessing from manuals etc that X11 is the problem. I've tried starting R with R --gui='X11' but to no avail! I've also had a look at the requirements under R/bin/linux/redhat/9/i386-- but I'm having some trouble mapping these to the gui installation names, though Xfree86 which I presume contains libX11.so.6 is installed. This document also mentions preference for 'gnorpm'. Whats that? Has anyone else had this problem? have an idea what is likely missing? or how to reconfigure R? ********************************************************************** This email and any files transmitted with it are confidentia...{{dropped}}
Did you build from sources or install an RPM? If the former, you probably do not have the X11 development files installed. Something like XFree86-devel-4.2.0-72 (from RH8.0). (My guess is that you do have XFree86-libs.) rm config.cache and reconfigure and rebuild after installation. On Wed, 19 Nov 2003, Stephen Henderson wrote:> Hello > > I'm moving from using R 1.8 for Windows to using Linux (Redhat version 9) > and I cannot get any graphics. However everything else maths, models > equations is fine-- and much quicker. I built from the source file following > the commands in the install manual. > > >plot(1:10, 1:10) > > does nothing! So clearly I have a problem with X Windows.It plots on Rplots.ps, not nothing.> > capabilities() > jpeg png tcltk X11 GNOME libz http/ftp sockets > FALSE FALSE FALSE FALSE FALSE TRUE TRUE TRUE > libxml fifo cledit IEEE754 bzip2 PCRE > TRUE TRUE TRUE TRUE TRUE TRUE > > I'm guessing from manuals etc that X11 is the problem. I've tried starting R > with > > R --gui='X11' > > but to no avail! > > I've also had a look at the requirements under R/bin/linux/redhat/9/i386-- > but I'm having some trouble mapping these to the gui installation names, > though Xfree86 which I presume contains libX11.so.6 is installed. This > document also mentions preference for 'gnorpm'. Whats that? > > Has anyone else had this problem? have an idea what is likely missing? or > how to reconfigure R?-- 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
On Wed, 2003-11-19 at 08:47, Stephen Henderson wrote:> Hello > > I'm moving from using R 1.8 for Windows to using Linux (Redhat version 9) > and I cannot get any graphics. However everything else maths, models > equations is fine-- and much quicker. I built from the source file following > the commands in the install manual. > > >plot(1:10, 1:10) > > does nothing! So clearly I have a problem with X Windows. > > > capabilities() > jpeg png tcltk X11 GNOME libz http/ftp sockets > FALSE FALSE FALSE FALSE FALSE TRUE TRUE TRUE > libxml fifo cledit IEEE754 bzip2 PCRE > TRUE TRUE TRUE TRUE TRUE TRUE > > I'm guessing from manuals etc that X11 is the problem. I've tried starting R > with > > R --gui='X11' > > but to no avail! > > I've also had a look at the requirements under R/bin/linux/redhat/9/i386-- > but I'm having some trouble mapping these to the gui installation names, > though Xfree86 which I presume contains libX11.so.6 is installed. This > document also mentions preference for 'gnorpm'. Whats that? > > Has anyone else had this problem? have an idea what is likely missing? or > how to reconfigure R?This seems to be rapidly becoming a FAQ of late. :-) The problem is that when you compile R from source code as opposed to using the pre-compiled binaries that Martyn has kindly provided, you must have the development libraries for the associated functionality installed on your system. In this case the requisite RPM will be XFree86-devel-VERSION.NUMBER. Presumably, when you installed RH9, you likely did not install all of the development tools. If you do: rpm -q XFree86-devel from a terminal console, it will likely indicate that it is not installed. Lacking this, you cannot compile functionality for the X11() device (the screen plotting device) into R. Thus, it is not shown when you use the capabilities() function. If you have your RH 9 CD's or DVD, you can go to the Add/Remove Applications menu program and run that (as root) to add the X development libraries, which should be listed under X Software Development. Notice also that you are missing jpeg and png functionality as well. If you are going to be compiling from source code, you should install all of the development related tools from the RH CDs/DVD. Once you install the additional development related RPMS, you should be good to go. The 'gnorpm' program is the RH GUI program for installing RPMS as opposed to doing it from the command line. There have been notable problems using that GUI and most? folks do not use it. HTH, Marc Schwartz
Stephen Henderson wrote:>Hello > >I'm moving from using R 1.8 for Windows to using Linux (Redhat version 9) >and I cannot get any graphics. However everything else maths, models >equations is fine-- and much quicker. I built from the source file following >the commands in the install manual. > > > >> >I've also had a look at the requirements under R/bin/linux/redhat/9/i386-- >but I'm having some trouble mapping these to the gui installation names, >though Xfree86 which I presume contains libX11.so.6 is installed. This >document also mentions preference for 'gnorpm'. Whats that? > >Has anyone else had this problem? have an idea what is likely missing? or >how to reconfigure R? > > >I have R 1.8 installed on 3 different systems running RH 9 using the precompiled binaries. R makes plots on all of them. One of the systems is a laptop (Toshiba Satellite 2535cds). For some reason on this system there is a readline problem and I have to use: > R --no-readline in order to run R but the graphics work fine. Before running 1.8 on this machine, I had compiled 1.7.1 (it took many many hours). R would run BUT I still had to use the --no-readline option AND the "x11" function would not work. (As a work around, I just used "pdf" and used the "system" function with gv to view the plots.) Since then I've installed 1.8 using the precompiled rpm available from the CRAN mirrors and it works except for the readline problem. Maybe if you install the rpm your graphics will work. If not, "pdf" should work. (I'm assuming you have XFree86's Xwindows running.) BTW, gnorpm is a graphical frontend to rpm. Although to install the one rpm for R 1.8, all you need is to do as root: > rpm -i R-1.8.0-1.i386.rpm or > rpm -U R-1.8.0-1.i386.rpm if upgrading from an earlier version of R. I always like to do: > rpm -U --test R-1.8.0-1.i386.rpm first, just to see if there are any problems before actually upgrading. I'm not sure why anyone would go through the trouble and time needed for compiling when the appropriate rpm is readily available. Rick B.