Re: [R] Can't install package Matrix on solaris.

From: Martin Maechler <maechler_at_stat.math.ethz.ch>
Date: Thu, 03 Jul 2008 22:44:11 +0200

>>>>> "BDR" == Prof Brian Ripley <ripley_at_stats.ox.ac.uk> >>>>> on Thu, 3 Jul 2008 13:25:54 +0100 (BST) writes:

    BDR> You need to use
    BDR> 1) GNU make (see the DESCRIPTION file).

    BDR> 2) the compiler used to install R.  Finding cc as /usr/ucb/cc indicates a 
    BDR> likely path error: the current Sun C compiler is likely to be somewhere 
    BDR> like /opt/SUNWspro/bin .  If you did not install R, ask the person who did 
    BDR> for the commands used.

Yes.

Also, why are you trying to install a version of Matrix that is clearly outdated?
(Is it because your version of R is similarly outdated, and  newer version of Matrix ask for relatively new versions of R) ?

seriously, please do use R 2.7.1 and then install Matrix_0.999375-10 (which does require R >= 2.6.0 only). Among many others, it has the nice feature that it *will* check if you are using GNU make and complain in English (instead of giving a pretty unhelpful error message later) if you don't use GNU make.

Hoping, you'll enjoy "the Matrix",
Martin Maechler,
ETH Zurich

    BDR> On Wed, 2 Jul 2008, Scott Brown wrote:

>> I'm using package Matrix, which I have installed on several flavours of linux system. But on an important solaris install, I can't make it work.
>>
>> Initially, I thought the problem was using 'make' instead of 'gmake', but I masked around that, and still get errors. Those new errors seem to be related to 'cc' wanting some optional extras that I don't have installed. Any idea what they are? Or how I can persuade CMD INSTALL to use 'gcc' or something else that works?
>>
>> I don't have root privileges on this system, just in case that's important for the kind of solution you were thinking of.
>>
>> Here's an example of two kinds of errors I get:
>>
>> FIRST KIND OF ERROR, WHEN USING 'MAKE':
>> ces-409034-sdb231: R CMD INSTALL -l ~/R Matrix_0.999375-4.tar.gz
>> * Installing *source* package 'Matrix' ...
>> ** libs
>> ** arch -
>> make: Fatal error in reader: Makefile, line 9: Unexpected end of line seen
>> ERROR: compilation failed for package 'Matrix'
>> ** Removing '/home/sdb231/R/Matrix'
>>
>> SECOND KIND OF ERROR, USING 'GMAKE':
>> ces-409034-sdb231: R CMD INSTALL -l ~/R Matrix_0.999375-4.tar.gz
>> * Installing *source* package 'Matrix' ...
>> ** libs
>> ** arch -
>> cc -I/usr/local/R-2.7.1/lib/R/include -I/usr/local/include -I./UFconfig
>> -g -c CHMfactor.c -o CHMfactor.o
>> /usr/ucb/cc: language optional software package not installed
>> gmake: *** [CHMfactor.o] Error 1
>> ERROR: compilation failed for package 'Matrix'
>> ** Removing '/home/sdb231/R/Matrix'
>>
>> ______________________________________________
>> R-help_at_r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>

    BDR> -- 
    BDR> Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
    BDR> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
    BDR> University of Oxford,             Tel:  +44 1865 272861 (self)
    BDR> 1 South Parks Road,                     +44 1865 272866 (PA)
    BDR> Oxford OX1 3TG, UK                Fax:  +44 1865 272595

    BDR> ______________________________________________
    BDR> R-help_at_r-project.org mailing list
    BDR> https://stat.ethz.ch/mailman/listinfo/r-help
    BDR> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html     BDR> and provide commented, minimal, self-contained, reproducible code.

R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Thu 03 Jul 2008 - 20:46:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 03 Jul 2008 - 21:32:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive