[R] R compiling on SOLARIS 2.6

Peter Dalgaard BSA
Thu, 22 Apr 1999 17:58:39 -0000

Carl Carpenter <carlc at hgsi.com> writes:

> We here at HGSI have a consultant doing some statistical work for us.
> HGSI bought and installed SAS, but our consultant insists that R and
> Rweb is a better solution. I do not know either package so I do not
> know, hence we are ditching SAS for R and Rweb. Any comments on this
> are welcom.

Interesting...

Not knowing what your applications are like, it's a bit difficult to
comment on, though.

>   ./configure --prefix=/usr/local --x-includes=/usr/openwin/include
> --x-libs=/usr/openwin/lib
>
> Compiling R gives these errors
>
>   make[2]: Leaving directory `/usr/local/R-0.64.0/src/nmath'
>   make[2]: Entering directory `/usr/local/R-0.64.0/src/unix'
>   gcc -g -O2  -I../include -I../../src/include  -c dataentry.c
>   In file included from dataentry.c:24:
>   dataentry.h:22: X11/X.h: No such file or directory
...
> Anybody have any ideas on how to make R compile cleanly?

Shouldn't be a big problem on Solaris.

The line for compiling dataentry.c is

        $(CC) $(CFLAGS) $(X_CFLAGS) $(CPPFLAGS) -c $<

and you don't seem to be picking up the  $(X_CFLAGS). These come from
the Makeconf file created by configure. Did you by any chance forget
to remove config.cache before running configure?

[for a pure Rweb application, you probably wouldn't need X at all, but
the --without-x switch doesn't actually work, I suspect]

--
   O__  ---- Peter Dalgaard             Blegdamsvej 3
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907