Subject: Re: Compilation of R under Mandrake Linux 6.1 (helios)
From: Prof Brian D Ripley (firstname.lastname@example.org)
Date: Thu 11 Nov 1999 - 17:35:16 EST
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 (email@example.com;
> 6 Sep 1999 message) noted for installation under Caldera Linux 2.2,
> i. e. /usr/X11R6/lib/libX11.so.6.1 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 config.site (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:
[try make, if that fails]
LIBS="-L /usr/X11R6/lib -lX11" ./configure [Bash syntax]
-- Brian D. Ripley, firstname.lastname@example.org 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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: email@example.com _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
This archive was generated by hypermail 2b25 : Tue 04 Jan 2000 - 14:16:10 EST