[R] Install problem on Solaris 9

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Apr 20 09:10:26 CEST 2005


You need to see the config.log for foreign.  To do so, please

1) unpack src/library/Recommended/foreign.tgz in say /tmp
2) Run  /path/to/R_HOME/bin/R CMD INSTALL /tmp/foreign
3) Look in /tmp/foreign/config.log

HOWEVER, you still seem to have -m64 in foreign.ts.out: R is not going to 
have put that there, so it is something you did or something wrong in the 
configuration of your machine.

I also do not get

>    configure: loading cache /dev/null

which I have never seen.   Here's what my config.log has (gcc 3.4.3, 
Solaris 8)

## ----------- ##
## Core tests. ##
## ----------- ##

configure:1346: checking for gcc
configure:1372: result: gcc
configure:1616: checking for C compiler version
configure:1619: gcc --version </dev/null >&5
gcc (GCC) 3.4.3
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR 
PURPOSE.

configure:1622: $? = 0
configure:1624: gcc -v </dev/null >&5
Reading specs from 
/opt/local/sol2.6/bin/../lib/gcc/sparc-sun-solaris2.8/3.4.3/specs
Configured with: ./configure
Thread model: posix
gcc version 3.4.3
configure:1627: $? = 0
configure:1629: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1632: $? = 1
configure:1655: checking for C compiler default output file name
configure:1658: gcc -O2 -g -Wall -pedantic   conftest.c  >&5
configure:1658: gcc -O2 -g -Wall -pedantic   conftest.c  >&5
configure:1661: $? = 0
configure:1707: result: a.out


On Mon, 18 Apr 2005, Shields, Rusty (IMS) wrote:

> I'm trying to install R-2.0.1 on Solaris 9 and I'm receiving the
> following error messages during make.
>
>    begin installing recommended package foreign
>    make[2]: *** [foreign.ts] Error 1
>    make[2]: Leaving directory
> `/opt/net/source/R-2.0.1/src/library/Recommended'
>    make[1]: *** [recommended-packages] Error 2
>    make[1]: Leaving directory
> `/opt/net/source/R-2.0.1/src/library/Recommended'
>    make: *** [stamp-recommended] Error 2
>
>
> A review of src/library/Recommended/foreign.ts.out shows:
>
>    * Installing *source* package 'foreign' ...
>    configure: loading cache /dev/null
>    checking for gcc... make[3]: Entering directory
> `/tmp/R.INSTALL.169/foreign'
>    gcc -m64
>    make[3]: Leaving directory `/tmp/R.INSTALL.169/foreign'
>    checking for C compiler default output file name... configure:
> error: C compiler cannot create executables
>    See `config.log' for more details.
>    ERROR: configuration failed for package 'foreign'
>
>
> A review of config.log does not reveal anything terribly useful.
>
> I'm using gcc, g77, and g++ v3.4.1, 32 bit builds (I think), all
> installed under /opt/net/utils/gcc3.4.1, which is in the path.
>
> LD_LIBRARY_PATH=/otherstuff:/opt/net/utils/gcc3.4.1/lib:/opt/net/utils/l
> ib:/otherstuff
>
> My config.site contains:
>
>    CC="gcc"
>    CPPFLAGS="-I/usr/include"
>    F77="g77"
>    LDFLAGS="-L/opt/net/utils/gcc3.4.1/lib/"
>    CXX="g++"

You never need

CPPFLAGS="-I/usr/include"

unless your compiler is broken, and apart from LDFLAGS R would have 
figured that all out for itself.


> What should I be looking for here?
>
> Thanks.
>
> Rusty
>
> 	[[alternative HTML version deleted]]

> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

PLEASE do, not HTML mail as it asks.


-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list