From rhurlin at gwdg.de  Sat Mar 31 22:40:01 2007
From: rhurlin at gwdg.de (Rainer Hurling)
Date: Sat, 31 Mar 2007 22:40:01 +0200
Subject: [Rd] Matrix package: compilation error
In-Reply-To: <20070331202404.GT47923@ms.unimelb.edu.au>
References: <460E9470.1010307@gwdg.de>
	<Pine.LNX.4.64.0703311859120.15900@gannet.stats.ox.ac.uk>
	<460EC045.4050205@gwdg.de>
	<20070331202404.GT47923@ms.unimelb.edu.au>
Message-ID: <460EC721.9060206@gwdg.de>

Thank you Andrew,

'setenv MAKE gmake' did it.

Now I can use latest spdep package :-)

Rainer


Andrew Robinson schrieb:
> Hi Rainer,
> 
> check the following post for an alternative solution:
> 
> http://tolstoy.newcastle.edu.au/R/help/06/01/18908.html
> 
> if you would like more detailed instructions, let me know.
> 
> Andrew
> 
> 
> On Sat, Mar 31, 2007 at 10:10:45PM +0200, Rainer Hurling wrote:
>> Thanks, Brian and Martin,
>>
>> I think you are both right, Matrix tries to use BSD make (/usr/bin/make) 
>> on FreeBSD instead of GNU make (/usr/local/bin/gmake).
>>
>> Sorry, but I don't know how to persuade the configure script to use 
>> gmake :-(
>>
>> Rainer
>>
>>
>> Prof Brian Ripley schrieb:
>>> This is because of the GNUism in Matrix/src/Makefile
>>>
>>> ## get rid of this, once we have 'Depends: R (>= 2.5.0)':
>>> ifeq (, $(findstring -lRlapack, $(LAPACK_LIBS)))
>>> SOURCES_LAPACK =
>>> else
>>> SOURCES_LAPACK = zpotf2.f zpotrf.f zlacgv.f
>>> endif
>>>
>>> I guess you know what you need to do to fix it for BSD make?
>>>
>>> On Sat, 31 Mar 2007, Rainer Hurling wrote:
>>>
>>>> Trying to compile the package Matrix_0.9975-11.tar.gz with newest
>>>> R-2.5.0 alpha (2007-03-31 r40986) on FreeBSD 7.0-CURRENT (i386) I get
>>>> the following error:
>>>>
>>>> -----
>>>> R CMD INSTALL Matrix_0.9975-11.tar.gz
>>>> * Installing to library '/usr/local/lib/R/library'
>>>> * Installing *source* package 'Matrix' ...
>>>> ** libs
>>>> ** arch -
>>>> "Makefile", line 10: Missing dependency operator
>>>> "Makefile", line 12: Need an operator
>>>> "Makefile", line 14: Need an operator
>>>> make: fatal errors encountered -- cannot continue
>>>> ERROR: compilation failed for package 'Matrix'
>>>> ** Removing '/usr/local/lib/R/library/Matrix'
>>>> -----
>>>>
>>>>
>>>> Under FreeBSD I have installed the LAPACK package (3.0.2) with library
>>>> at location
>>>>
>>>> /usr/local/lib/liblapack.so.4
>>>>
>>>> Is it possible that the Makefile of package Matrix fails because of that?
>>> Not used unless you asked for it during R's configure.
>>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] Matrix package: compilation error
Rainer Hurling