From ripley at stats.ox.ac.uk  Tue Mar 22 20:17:59 2005
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue Mar 22 20:18:12 2005
Subject: [Rd] make install fails with makeinfo < 4.7
In-Reply-To: <424065F4.3040809@jhsph.edu>
References: <424065F4.3040809@jhsph.edu>
Message-ID: <Pine.LNX.4.61.0503221852150.31029@gannet.stats>

On Tue, 22 Mar 2005, Roger D. Peng wrote:

> When I build R-devel (or the alpha snapshots) on a system without makeinfo >= 
> 4.7, I get a warning about not being able to build HTML/Info help pages after 
> running 'configure' (but 'make' runs smoothly and there are no errors). 
> However, when I run 'make install' I get an error, something like
>
> make[2]: Entering directory `/home/rpeng/R-local/src/R-devel/doc/html'
> make[3]: Entering directory `/home/rpeng/R-local/src/R-devel/doc/manual'
> creating doc/html/resources.html
> make[3]: *** [../html/resources.html] Error 1
> make[3]: Leaving directory `/home/rpeng/R-local/src/R-devel/doc/manual'
> installing doc/html ...
> make[3]: Entering directory `/home/rpeng/R-local/src/R-devel/doc/html/search'
> installing doc/html/search ...
> make[3]: Leaving directory `/home/rpeng/R-local/src/R-devel/doc/html/search'
> /usr/bin/install: cannot stat `resources.html': No such file or directory
> make[2]: *** [install] Error 1
> [... more errors ...]
>
> Am I correct in assuming that I get this because I don't have the correct 
> makeinfo version?

No.  The intention is that file should be in the tarball.  It seems to be.
Are you using builddir == srcdir or not?  Both seem to work for me.

The line

> creating doc/html/resources.html

should not occur when building from a tarball, as it comes from

 	@if test ! -f "$(srcdir)/resources.html" || test -f non-tarball ; then \
 	  (cd ../manual && $(MAKE) html-non-svn) ; \
 	  touch non-tarball ; \

Have you perchance previously built from an SVN checkout in the same dir?

> If so, is this the intended behavior of 'make install'?  I 
> figured I should be able to install R even if I couldn't build the HTML/Info 
> help pages, but....

If building from a tarball, yes.  The requirements for building from an 
SVN checkout are more stringent.

-- 
Brian D. Ripley,                  ripley@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


[Rd] make install fails with makeinfo < 4.7
Prof Brian Ripley