[R] Trying to compile R on Unix

Curtis Miller curtis.p.miller at monsanto.com
Mon Jun 19 04:37:10 CEST 2000


I have been trying to compile R.  I downloaded R-1.0.1.tgz(I think;
the original tar file was untarred) and unpacked it with gzip.  Now
all the R files are in a directory named R-1.0.1.  The source files
(.c) are in R-1.0.1/src.  There are files in R-1.0.1 named
'Makefile.in',
'Makeconf.in', and 'Makeconf'.  I followed the instructions in INSTALL
by typing './configure'.  Here is the output:

----------------------------------------------
pauling 1% ./configure
loading cache ./config.cache
checking host system type... mips-sgi-irix6.5
loading site script ./config.site
loading build specific script ./config.site
checking for mawk... no
checking for gawk... no
checking for nawk... nawk
checking for a BSD compatible install... tools/install-sh -c
configure: warning: redefining INSTALL to be
/usr/people/guest/R-1.0.1/tools/install-sh -c
checking whether ln -s works... yes
checking for ranlib... :
checking for bison... bison -y
checking for ar... ar
checking whether echo can suppress newlines... yes
checking for nroff... false
checking for tbl... false
checking for perl... /usr/sbin/perl
checking whether perl version is at least 5... yes
checking for dvips... false
checking for latex... false
checking for makeindex... false
checking for pdflatex... false
checking for makeinfo... no
configure: warning: you cannot build info versions of the R manuals
checking for unzip... no
checking for zip... no
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc  ) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
----------------------------------------------

'configure' seems to work in a way.  The applications it didn't find
aren't on
this system, as far as I know.  I don't know why the C compiler couldn't
make
executables.  
  After typing './configure', I followed the instructions in INSTALL
again and
typed 'make -f Makefile.in'. Here are the results:

--------------------------------------------------------
pauling 3% make -f Makefile.in
make: file `./Makeconf' line 61: Must be a separator (: or ::) for rules
(bu39)
make: file `./Makeconf' line 64: Must be a separator (: or ::) for rules
(bu39)
--------------------------------------------

Here is 'Makeconf':

-------------------------
pauling 4% cat Makeconf
PACKAGE = @PACKAGE@
VERSION = @VERSION@

AR = @AR@
AWK = @AWK@
BLAS = @BLAS@
CC = @CC@
CFLAGS = @CFLAGS@
CPICFLAGS = @CPICFLAGS@
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@
DLLFLAGS = @DLLFLAGS@
DVIPS = @DVIPS@
FC = @FC@
FFLAGS = @FFLAGS@
FLIBS = @FLIBS@
FPICFLAGS = @FPICFLAGS@
F2C = @F2C@
F2CFLAGS = @F2CFLAGS@
GNOMEUI_LIBS = @GNOMEUI_LIBS@
GNOME_LIBDIR = @GNOME_LIBDIR@
GNOME_INCLUDEDIR = @GNOME_INCLUDEDIR@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DIR = ${INSTALL} -d
LATEX = @LATEX@
LDCMD = @LDCMD@
LDFLAGS = @LDFLAGS@
LIBGLADE_CFLAGS = @LIBGLADE_CFLAGS@
LIBGLADE_LIBS = @LIBGLADE_LIBS@
LIBS = @LIBS@
LN_S = @LN_S@
MAKEINDEX = @MAKEINDEX@
MKINSTALLDIRS = $(top_srcdir)/tools/mkinstalldirs
R_PKGS = base ctest eda lqs modreg mva nls splines stepfun ts
R_XTRA_CFLAGS = @R_XTRA_CFLAGS@
R_XTRA_CPPFLAGS = -I. -I../include -I$(top_srcdir)/src/include
-I$(top_srcdir)/src/include/R_ext
R_XTRA_FFLAGS = @R_XTRA_FFLAGS@
R_XTRA_LIBS = @R_XTRA_LIBS@
RANLIB = @RANLIB@
SHELL = /bin/sh
SHLIBEXT = @SHLIBEXT@
SHLIBLD = @SHLIBLD@
SHLIBLDFLAGS = @SHLIBLDFLAGS@
TAR = @TAR@
X_CFLAGS = @X_CFLAGS@
X_LIBS = @X_LIBS@
X_PRE_LIBS = @X_PRE_LIBS@
X_EXTRA_LIBS = @X_EXTRA_LIBS@
YACC = @YACC@

ALL_CFLAGS = $(R_XTRA_CFLAGS) $(CFLAGS)
ALL_CPPFLAGS = $(R_XTRA_CPPFLAGS) $(CPPFLAGS) $(DEFS)
ALL_FFLAGS = $(R_XTRA_FFLAGS) $(FFLAGS)

.SUFFIXES:
.SUFFIXES: .c .f .d .o

@depend_rules_frag@
.c.o:
        $(CC) $(ALL_CPPFLAGS) $(ALL_CFLAGS) -c $< -o $@
@f77_rules_frag@

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
datadir = @datadir@
libdir = @libdir@
mandir = @mandir@

rhome = @libdir@/R
----------------------------------------

The system here is IRIX 6.5, on a Silicon Graphics workstation.  The
'env'
file has SHELL=/bin/csh.  The 'make' may not be GNU make.  
  I don't know how to compile all the source files in the R directory
into 
a working version of R.  I may just not be giving the right commands to
'make', or not have the right version of 'make'.  If GNU make is needed,
I can get the tar file and unpack it, but may not be able to compile
that 
either.
	Curtis Miller


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list