[R] foreign package install on Solaris 10 + R-2.7.1

Sarosh Jamal sarosh.jamal at utoronto.ca
Tue Mar 10 03:56:20 CET 2009


I've been having trouble installing package "spdep" for R-2.7.1 on our Solaris 10 (sparc) server.  Namely the two dependencies for this package do not install properly: "foreign" and "maptools"

I understand that Solaris 10 may not be an officially supported platform but any help/feedback you can offer would be most appreciated.

I've updated all packages currently installed on this version of R but the install of package "foreign" complains about an invalid "priority" field in the DESCRIPTION file. I've not had any issues with the other packages.

I'm including our systemInfo() output here:
R version 2.7.1 (2008-06-23)


attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

And, I'm including the transcript from the package install attempt:
1 /home/sjamal > R

R version 2.7.1 (2008-06-23)
Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> install.packages("foreign")
Warning in install.packages("foreign") :
  argument 'lib' is missing: using '/home/sjamal/R/sparc-sun-solaris2.10-library
--- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done trying URL 'http://probability.ca/cran/src/contrib/foreign_0.8-33.tar.gz'
Content type 'application/x-gzip' length 315463 bytes (308 Kb) opened URL ==================================================
downloaded 308 Kb

* Installing *source* package 'foreign' ...
checking for gcc... gcc -std=gnu99
checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables...
checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc -std=gnu99 accepts -g... yes checking for gcc -std=gnu99 option to accept ANSI C... none needed checking whether gcc -std=gnu99 accepts -Wno-long-long... yes checking how to run the C preprocessor... gcc -std=gnu99 -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking byteswap.h usability... no checking byteswap.h presence... no checking for byteswap.h... no checking for double... yes checking size of double... 8 checking for int... yes checking size of int... 4 checking for long... yes checking size of long... 4
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating src/swap_bytes.h
config.status: creating src/var.h
Error: Invalid DESCRIPTION file

Invalid Priority field.
Packages with priorities 'base' or 'recommended' or 'defunct-base' must already be known to R.

See the information on DESCRIPTION files in section 'Creating R packages' of the 'Writing R Extensions' manual.
Execution halted
ERROR: installing package DESCRIPTION failed
** Removing '/home/sjamal/R/sparc-sun-solaris2.10-library/2.7/foreign'
** Restoring previous '/home/sjamal/R/sparc-sun-solaris2.10-library/2.7/foreign'

The downloaded packages are in
Warning message:
In install.packages("foreign") :
  installation of package 'foreign' had non-zero exit status

I look forward to your insights.

Thank you,


Sarosh Jamal

Geographic Computing Specialist
Department of Geography

Staff co-Chair, United Way Campaign

University of Toronto Mississauga
sarosh.jamal at utoronto.ca

More information about the R-help mailing list