[Rd] Matrix package: compilation error

2007-03-31 Thread Rainer Hurling
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?

Any help is appreciated,
Rainer Hurling

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Matrix package: compilation error

2007-03-31 Thread Prof Brian Ripley
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.

-- 
Brian D. Ripley,  [EMAIL PROTECTED]
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, UKFax:  +44 1865 272595

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Matrix package: compilation error

2007-03-31 Thread Martin Maechler
> "Rainer" == Rainer Hurling <[EMAIL PROTECTED]>
> on Sat, 31 Mar 2007 19:03:44 +0200 writes:

Rainer> Trying to compile the package
Rainer> Matrix_0.9975-11.tar.gz 
Rainer> with newest R-2.5.0 alpha
Rainer> (2007-03-31 r40986) on FreeBSD 7.0-CURRENT (i386) 

does FreeBSD use a make that is 'GNU make' compatible?
Matrix/DESCRIPTION has  a line which says
--
SystemRequirements: GNU make
--

Regards,
Martin Maechler, ETH Zurich

Rainer> I get the following error:


Rainer> -
Rainer> R CMD INSTALL Matrix_0.9975-11.tar.gz
Rainer> * Installing to library '/usr/local/lib/R/library'
Rainer> * Installing *source* package 'Matrix' ...
Rainer> ** libs
Rainer> ** arch -
Rainer> "Makefile", line 10: Missing dependency operator
Rainer> "Makefile", line 12: Need an operator
Rainer> "Makefile", line 14: Need an operator
Rainer> make: fatal errors encountered -- cannot continue
Rainer> ERROR: compilation failed for package 'Matrix'
Rainer> ** Removing '/usr/local/lib/R/library/Matrix'
Rainer> -


Rainer> Under FreeBSD I have installed the LAPACK package (3.0.2) with 
library 
Rainer> at location

Rainer> /usr/local/lib/liblapack.so.4

Rainer> Is it possible that the Makefile of package Matrix fails because of 
that?

Rainer> Any help is appreciated,
Rainer> Rainer Hurling

Rainer> __
Rainer> R-devel@r-project.org mailing list
Rainer> https://stat.ethz.ch/mailman/listinfo/r-devel

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Matrix package: compilation error

2007-03-31 Thread Rainer Hurling
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@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Matrix package: compilation error

2007-03-31 Thread Andrew Robinson
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@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Andrew Robinson  
Department of Mathematics and StatisticsTel: +61-3-8344-9763
University of Melbourne, VIC 3010 Australia Fax: +61-3-8344-4599
http://www.ms.unimelb.edu.au/~andrewpr
http://blogs.mbs.edu/fishing-in-the-bay/

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Matrix package: compilation error

2007-03-31 Thread Rainer Hurling
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@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Matrix package: compilation error

2007-04-02 Thread Hin-Tak Leung
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 :-(

easy -

mkdir ~/mynewbin
ln -s /usr/local/bin/gmake ~/mynewbin/make
export PATH=${HOME}/mynewbin:${PATH}

Then run "R CMD INSTALL ..." as you did.

and afterwards, "rm -rf ~/mynewbin". (I hope I don't need to explain
what the 3 lines above do...)

HTL


> 
> 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@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Matrix package: compilation error

2007-04-02 Thread Rainer Hurling
Thank you Hin-Tak Leung,

on Saturday, 31th, Brian Ripley and Martin Maechler showed me the use of 
gmake without linking make against gmake:

   setenv MAKE gmake
   R CMD INSTALL Matrix_0.9975-11.tar.gz
   unsetenv MAKE
   R CMD INSTALL spdep_0.4-2.tar.gz

Everything works fine now. However, on my wishlist is a general way to 
integrate "the search for gmake on systems like FreeBSD" in the 
configure script of packages like Matrix ... ;-)

Rainer Hurling


Hin-Tak Leung schrieb:
> 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 :-(
> 
> easy -
> 
> mkdir ~/mynewbin
> ln -s /usr/local/bin/gmake ~/mynewbin/make
> export PATH=${HOME}/mynewbin:${PATH}
> 
> Then run "R CMD INSTALL ..." as you did.
> 
> and afterwards, "rm -rf ~/mynewbin". (I hope I don't need to explain
> what the 3 lines above do...)
> 
> HTL
> 
> 
>>
>> 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@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Matrix package: compilation error

2007-04-02 Thread Hin-Tak Leung
Rainer Hurling wrote:
> Thank you Hin-Tak Leung,
> 
> on Saturday, 31th, Brian Ripley and Martin Maechler showed me the use of 
> gmake without linking make against gmake:
> 
>   setenv MAKE gmake
>   R CMD INSTALL Matrix_0.9975-11.tar.gz
>   unsetenv MAKE
>   R CMD INSTALL spdep_0.4-2.tar.gz
> 
> Everything works fine now. However, on my wishlist is a general way to 
> integrate "the search for gmake on systems like FreeBSD" in the 
> configure script of packages like Matrix ... ;-)

Hmm, you are using a csh-like shell. Just replace the "export" statement 
below with the equivalent setenv statement:
 setenv PATH ${HOME}/mynewbin:${PATH}

The PATH trick is also a useful thing to do if you have say,
multiple java JDK's, or other things.

> Hin-Tak Leung schrieb:
>> 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 :-(
>>
>> easy -
>>
>> mkdir ~/mynewbin
>> ln -s /usr/local/bin/gmake ~/mynewbin/make
>> export PATH=${HOME}/mynewbin:${PATH}
>>
>> Then run "R CMD INSTALL ..." as you did.
>>
>> and afterwards, "rm -rf ~/mynewbin". (I hope I don't need to explain
>> what the 3 lines above do...)
>>
>> HTL
>>
>>
>>>
>>> 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@r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel