Brian, thank you for the adaptions. I tried the new version under R-2.5.0 (2007-01-23 r40560) on FreeBSD 7.0-CURRENT and got the following output.
----- #R CMD INSTALL rgl_0.70-1.tar.gz * Installing to library '/usr/local/lib/R/library' * Installing *source* package 'rgl' ... checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include checking for libpng-config... yes configure: using libpng-config configure: using libpng dynamic linkage configure: creating ./config.status config.status: creating src/Makevars ** libs g++ -I/usr/local/lib/R/include -I/usr/local/lib/R/include -I/usr/X11R6/include -DHAVE_PNG_H -I/usr/local/include/libpng -Iext -I/usr/local/include -fpic -g -O2 -c BBoxDeco.cpp -o BBoxDeco.o In file included from BBoxDeco.hpp:11, from BBoxDeco.cpp:1: math.h: In function `T math::log2(T)': math.h:43: error: `::log2' has not been declared *** Error code 1 Stop in /tmp/R.INSTALL.hVDVXM/rgl/src. chmod: /usr/local/lib/R/library/rgl/libs/*: No such file or directory ERROR: compilation failed for package 'rgl' ** Removing '/usr/local/lib/R/library/rgl' ----- It seems there is a problem with math.h. The FreeBSD manual for math(3) says: The log2() and nan() functions are missing, and many functions are not available in their long double variants. I do not know how to locate the library that contains function log2, sorry. What can I do next to help? Rainer Prof Brian Ripley wrote: > Please try the attached. > > Duncan: I fixed some other errors in configure.ac and src/Makevars.in, > and added a FIXME. If this works on MacOS X (and I am fairly confident > it will on FreeBSD since it now works on Solaris make), I can fix up the > FIXME too. > > I was presuming the MacOS code came from Simon Urbanek, but I would have > expected him to know better than to use GNU make extensions. > > Brian > > On Tue, 20 Feb 2007, Prof Brian Ripley wrote: > >> The problem is that rgl is apparently written for GNU make, and has >> (as shipped) >> >> ifdef MAKINGAGL >> [EMAIL PROTECTED]@ -Iext >> [EMAIL PROTECTED]@ >> else >> PKG_CPPFLAGS= -If:/R/R-2.4.1/src/extra/zlib -DHAVE_PNG_H >> -If:/R/R-2.4.1/src/gnuwin32/bitmap/libpng -Iext >> PKG_LIBS=-lgdi32 -lopengl32 -lglu32 >> -Lf:/R/R-2.4.1/src/gnuwin32/bitmap/libpng - >> lpng -Lf:/R/R-2.4.1/src/extra/zlib -lz >> endif >> >> and similar for BUILDAGL. >> >> That seems to have been written to make it workable on MacOS X. Given >> that configure knows (or could know) the OS, it seems better to write >> (via configure) a separate Makevars for MacOS X and remove all the >> ifdef...endif stuff for everyone else. (If you do that in Makevars.in >> it should work.) >> >> >> On Tue, 20 Feb 2007, Rainer Hurling wrote: >> >>> Duncan Murdoch schrieb: >>>> On 2/20/2007 1:11 PM, Ranjan Maitra wrote: >>>>> Hi Duncan, >>>>> I don't know if this will list all the dependencies for your >>>>> documentation, since Rick's error messages did not involve >>>>> libraries and header files already installed by him for something >>>>> else, perhaps. >>>> >>>> No, but it's a start: I'm thinking of something more like a FAQ than >>>> comprehensive documentation. Comprehensive docs are not feasible to >>>> maintain (there are so many systems that Daniel and I don't use), but >>>> hints that two non-standard packages solved one person's problems might >>>> be enough of a hint to get someone else going. >>> >>> Duncan, >>> >>> thank you for this purpose. I am such a person who could need some help >>> with installing rgl and hope it is ok to place it in this thread. >>> >>> My trial to install rgl_0.70.tar.gz on R-2.4.1 on FreeBSD 7.0-CURRENT >>> ends up with errors. Obiously something is wrong with Makevars. I have >>> no idea what to do next. 'rgl' is one of the rare cases that do not >>> install under R on FreeBSD. >>> >>> The install messages are short: >>> >>> ----- >>> #R CMD INSTALL rgl_0.70.tar.gz >>> * Installing to library '/usr/local/lib/R/library' >>> * Installing *source* package 'rgl' ... >>> checking for gcc... gcc >>> checking for C compiler default output file name... a.out >>> checking whether the C compiler works... yes >>> checking whether we are cross compiling... no >>> checking for suffix of executables... >>> checking for suffix of object files... o >>> checking whether we are using the GNU C compiler... yes >>> checking whether gcc accepts -g... yes >>> checking for gcc option to accept ANSI C... none needed >>> checking how to run the C preprocessor... gcc -E >>> checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include >>> checking for libpng-config... yes >>> configure: using libpng-config >>> configure: using libpng dynamic linkage >>> configure: creating ./config.status >>> config.status: creating src/Makevars >>> ** libs >>> "Makevars", line 9: Need an operator >>> "Makevars", line 12: Need an operator >>> "Makevars", line 15: Need an operator >>> "Makevars", line 21: Need an operator >>> "Makevars", line 23: Need an operator >>> "Makevars", line 36: Need an operator >>> "Makevars", line 38: Need an operator >>> make: fatal errors encountered -- cannot continue >>> chmod: /usr/local/lib/R/library/rgl/libs/*: No such file or directory >>> ERROR: compilation failed for package 'rgl' >>> ** Removing '/usr/local/lib/R/library/rgl' >>> ----- >>> >>> Are there any experiences with installing rgl on FreeBSD? Do you know if >>> it is at all possible to get rgl to work on FreeBSD? If I can do >>> anything like testing or giving more information let me know. >>> >>> I appreciate any help. Thank you in advance. >>> >>> Rainer Hurling ______________________________________________ R-help@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.