[R] subselect install problem
Prof Brian Ripley
ripley at stats.ox.ac.uk
Wed Sep 1 08:32:26 CEST 2004
On Tue, 31 Aug 2004, Xiao-Jun Ma wrote:
> Trying to install subselect v0.8 on Redhat 7.3 and R 1.8.1 fails (below). Any help is greatly appreciated.
They are old, but the issue is package subselect. anneal.f is not written
in Fortran77. The comments are non-standard, as is the use of dfloat:
critvalue = vactual/dsqrt(dfloat(nqsi*k))
^
"anneal.f", Line = 186, Column = 41: ANSI: Intrinsic "DFLOAT" is an
extension to the Fortran standard.
etc.
BTW, it seems the C++ routines are non-standard, too, since I get many
warnings like
In file included from
/opt/local/bin/../lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../include/c++/3.4.1/backward/iostream.h:31,
from gaussjel.cpp:5:
/opt/local/bin/../lib/gcc/i686-pc-linux-gnu/3.4.1/../../../../include/c++/3.4.1/backward/backward_warning.h:32:2:
warning: #warning This file includes at
leastone deprecated or antiquated header. Please consider using one of the
32 headers found in section 17.4.1.2 of the C++ standard. Examples include
substituting the <X> header for the <X.h> header for C++ includes, or
<iostream> instead of the deprecated header <iostream.h>. To disable this
warning use -Wno-deprecated.
The solution is to install g77 and use that rather than f2c when you
update your R (urgent).
>
> Xiao-Jun
>
>
> * Installing *source* package 'subselect' ...
> ** libs
> f2c < anneal.f > anneal.c
> anneal:
> Error on line 263: Declaration error for fica: adjustable dimension on non-argument
> Error on line 263: Declaration error for valp: adjustable dimension on non-argument
> Error on line 263: Declaration error for auxw: adjustable dimension on non-argument
> Error on line 263: wr_ardecls: nonconstant array size
> Error on line 263: wr_ardecls: nonconstant array size
> Error on line 263: wr_ardecls: nonconstant array size
> make: *** [anneal.o] Error 1
> ERROR: compilation failed for package 'subselect'
--
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