[R] rgl.snapshot "failed"

Duncan Murdoch murdoch at stats.uwo.ca
Mon Feb 5 19:06:49 CET 2007


On 2/5/2007 10:28 AM, laszlo kajan wrote:
> Hello Duncan,
> 
> no, it unfortunately does not find the paths. Here's what happens:

Thanks for your patch.  It looks like it would be good on any system, so 
I'll put it in place.

Duncan Murdoch

> 
> ---------------------------
> $ R CMD INSTALL rgl_0.70.552.tar.gz<ENTER>
> ...
> checking for X... libraries , headers
> checking for libpng-config... yes
> ...
> ...
> g++ -I/usr/lib/R/include -I/usr/lib/R/include -I -DHAVE_PNG_H 
> -I/usr/include/libpng12...
> ...
> ---------------------------
> 
> As you can see, it does not find the X libraries and headers, 
> consequently it fails to construct the correct g++ command (note the 
> -I<space>-DHAVE_PNG_H - incorrect definition of HAVE_PNG_H). This latter 
> leads to the error, because if I modify the autoconf.ac with the 
> following patch:
> 
> ---------------------------
> --- rgl/configure.ac    2006-12-11 12:37:13.000000000 +0100
> +++ ../rgl/configure.ac 2007-02-02 23:03:27.800030897 +0100
> @@ -29,7 +29,9 @@
>     if test x$no_x == xyes ; then
>       AC_MSG_ERROR([X11 not found but required, configure aborted.])
>     fi
> -  CPPFLAGS="${CPPFLAGS} -I${x_includes}"
> +  #CPPFLAGS="${CPPFLAGS} -I${x_includes}"
> +  # kajla
> +  if test "x${x_includes}" != "x" ; then CPPFLAGS="${CPPFLAGS} 
> -I${x_includes}"; fi
>     LIBS="${LIBS} -L${x_libraries} -lX11 -lXext"
>     if test `uname` = "Darwin" ; then
>       CPPFLAGS="${CPPFLAGS} -DDarwin"
> ---------------------------
> 
> , run autoconf, re-create the tar.gz and R CMD INSTALL that, then it 
> works (rgl.snapshot generates pngs) even in the absence of the paths for X!
> 
> I wouldn't be surprised if this turned out to be a problem with Fedora 
> Core 6 and the installed packages though, rather than rgl.
> 
> Laszlo Kajan
> 
> 
> 
> 
> Duncan Murdoch wrote:
>> On 2/5/2007 8:48 AM, laszlo kajan wrote:
>> 
>>> Dear Roger Koenker,
>>>
>>> I have had just the same problem (rgl.snapshot returns "failed") on my 
>>> Fedora Core 6 system.
>>>
>>> It took me quite a while to figure out the solution, so I would like 
>>> to post it here to make others' lives easier.
>>>
>>> My configuration:
>>>
>>> Linux zachariasz.dns6.org 2.6.18-1.2869.fc6 #1 SMP Wed Dec 20 14:51:19 
>>> EST 2006 i686 athlon i386 GNU/Linux
>>>
>>> Fedora Core 6
>>>
>>> R version 2.4.0 Patched (2006-11-03 r39789)
>>>
>>> Package:              rgl
>>> Version:              0.70
>>> Date:                 2007-01-06
>>>
>>> What I had to do:
>>>
>>> Download the rgl package, install libX11, libX11-devel, libXt, 
>>> libXt-devel, and then run:
>>>
>>> --------------------------
>>> R CMD INSTALL --configure-args='--x-includes=/usr/include/X11
>>>   --x-libraries=/usr/lib' path_to_rgl_0.70.tar.gz
>>> --------------------------
>>>
>>> The problem is that the ./configure script in the rgl_0.70 package 
>>> does not seem to be able to locate the relevant X include and library 
>>> paths. These have to be given explicitely, as shown.
>>>
>>> Hope this will help some in a similar situation.
>> 
>> 
>> The configure script in rgl 0.70 uses some very old autoconf material. 
>> The next release will replace it with newer versions.  Not sure when 
>> that will happen...
>> 
>> If you'd like to test the new script you can get a copy from
>> 
>> http://www.stats.uwo.ca/faculty/murdoch/temp/rgl_0.70.552.tar.gz
>> 
>> I don't see the error you solved, so it's hard for me to know if this 
>> version fixes it, but I would hope you could leave out the extra install 
>> args, and just use the regular
>> 
>> R CMD INSTALL path_to/rgl_0.70.552.tar.gz
>> 
>> on a wider variety of systems.
>> 
>> Duncan Murdoch
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list