Compilation of R under Mandrake Linux 6.1 (helios)

Prof Brian D Ripley
Thu, 11 Nov 1999 07:35:16 +0000 (GMT)

On Thu, 11 Nov 1999, John Maindonald wrote:

> I've just installed Mandrake Linux, then compiled R-0.65.1 .
> Whether because I omitted some necessary items when I selected
> software for installion, or because they anyway needed to be
> loaded afterwards, I found it necessary to load the following
> packages in order to compile R-0.65.1
>   pgcc-g77-1.1.3-3mdk.i586.rpm        (Fortran g77 compiler)
>   XFree66-devel-3.3.5-3mdk.i586.rpm   (X.h etc header files)

The RedHat equivalent needs their equivalents (but is it not XFree88...?),
so this is not at all surprising.

> In addition I had the problem which Jack Fenner (;
> 6 Sep 1999 message) noted for installation under Caldera Linux 2.2,
> i. e. /usr/X11R6/lib/ was not getting linked.
> I used his solution, i.e. after running ./configure
> edit the src/main/Makefile
> Two lines down from
> $(top_builddir)/bin/R.X11: $(OBJECTS) $(RLIBS)
> is a line that starts $(LDCMD)
> Add -L /usr/X11R6/lib before $(DLLFLAGS)
> and -lX11 at the end of the line (which was line 122 in my Makefile).
> (NB minus ell X eleven)

I find it much easier to do this using LIBS in (but you can use
the command line or ~/.Rconf ...).  Something like

LIBS="-L /usr/X11R6/lib -lX11"

should do this for you.  I wonder though whether you need to re-configure
after adding the rpms, and to remove config.cache before doing so?  I
would really have expected configure to find out how to use X libraries,
but only if the relevant devel package was already installed. 

Since you will need to do this again for each release, it might be
worth trying these:

rm config.cache
[try make, if that fails]
rm config.cache
LIBS="-L /usr/X11R6/lib -lX11" ./configure [Bash syntax]

Brian D. Ripley,        
Professor of Applied Statistics,
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-devel mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: