[R] Building problem: leftover from old OS

Martin Maechler maechler at stat.math.ethz.ch
Thu Jul 22 11:59:24 CEST 2004

I guess that you built R before (in the same location for
Solaris 2.7) ?

If yes,
  "make clean"

(or just wipe out everything, and unpack the R-1.9.1.tar.gz again)
before calling configure should solve the problem.

BTW: I'd recommend to build in a different directory than the
     source one.
Starting from scratch, I'd do

    tar xfz R-1.9.1.tar.gz
    mkdir   R-1.9.1-inst
    cd      R-1.9.1-inst
    ../R-1.9.1/configure ........
			 ^^^^^^^^^ maybe add some recommended Solaris options

>>>>> "Giovanni" == Giovanni Petris <GPetris at uark.edu>
>>>>>     on Wed, 21 Jul 2004 16:59:37 -0500 (CDT) writes:

    Giovanni> I have updated my OS from Solaris 2.7 to Solaris
    Giovanni> 2.8, and I am trying to build R 1.9.1. Configure
    Giovanni> seems to run fine, resulting in the message:

    Giovanni> R is now configured for sparc-sun-solaris2.8

    Giovanni> Source directory:          .
    Giovanni> Installation directory:    /usr/local

    Giovanni> C compiler:                cc  -xO5 -dalign -xlic_lib=sunperf
    Giovanni> C++ compiler:              CC  -xO5 -dalign
    Giovanni> Fortran compiler:          f95  -xO5 -dalign -xlic_lib=sunperf

    Giovanni> Interfaces supported:      X11
    Giovanni> External libraries:        BLAS(none), LAPACK(in blas)
    Giovanni> Additional capabilities:   PNG, JPEG
    Giovanni> Options enabled:           R profiling

    Giovanni> Recommended packages:      yes
    Giovanni> Unfortunately, the generated file
    Giovanni> ./src/appl/Makefile contains the lines:

    Giovanni> approx.o: approx.c ../../src/include/config.h \
    Giovanni> ../../src/include/R_ext/Arith.h \
    Giovanni> /opt/gnu/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/include/math.h \

    Giovanni> and, since the mentioned file doesn't exist
    Giovanni> (actually, there is no gcc on my machine yet),
    Giovanni> invoking make results in the following error:

    Giovanni> make[3]: Entering directory `/usr/local/R/R-1.9.1/src/appl'
    Giovanni> make[3]: *** No rule to make target
    Giovanni> `/opt/gnu/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/include/math.h',
    Giovanni> needed by `approx.o'.  Stop. 

    Giovanni> Do you have any idea of what is going on here? 

    Giovanni> Thanks in advance,
    Giovanni> Giovanni

More information about the R-help mailing list