[R] MacOS X: Packages KernSmooth and cluster won't compile
Kaspar Pflugshaupt
pflugshaupt at geobot.umnw.ethz.ch
Thu Jan 31 16:32:33 CET 2002
Hello,
I'm using R 1.40 on MacOS X X.1.2 (installed via the fink package manager).
To upgrade my installed packages, I tried to use update.packages() today.
All went well for most packages, with the exception of KernSmooth and
cluster. In both cases, libraries were not found although I think they are
present.
Here's what happened:
----------------------------------
> update.packages()
[snip]
KernSmooth :
Version 2.22-6 in /sw/lib/R/library
Version 2.22-7 on CRAN
Update (y/N)? y
cluster :
Version 1.3-6 in /sw/lib/R/library
Version 1.4-0 on CRAN
Update (y/N)? y
[snip]
Installing *source* package `KernSmooth' ...
[snip]
cc -I/sw/lib/R/include -I/sw/include -fno-common -g -O2 -c sstdiag.c -o
sstdiag.o
cc -bundle -bundle_loader /sw/lib/R/bin/R.bin -o KernSmooth.so blkest.o
cp.o dgedi.o dgefa.o dgesl.o linbin.o linbin2D.o locpoly.o rlbin.o sdiag.o
sstdiag.o -lf77blas -lcblas -latlas -L/usr/local/lib -lf2c -lm
/usr/bin/ld: can't locate file for: -lf77blas
make: *** [KernSmooth.so] Error 1
ERROR: compilation failed for package `KernSmooth'
Installing *source* package `cluster' ...
[snip]
cc -bundle -bundle_loader /sw/lib/R/bin/R.bin -o cluster.so clara.o daisy.o
fanny.o meet.o mona.o pam.o spannel.o twins.o -L/usr/local/lib -lf2c -lm
/usr/bin/ld: can't locate file for: -lf2c
make: *** [cluster.so] Error 1
ERROR: compilation failed for package `cluster'
---------------------------------------
So, in the first case, library f77blas was not found. I do have
/sw/lib/libf77blas.a, though. In the second case, library f2c is missed, but
it's there at /sw/lib/libf2c.a.
Is this a linking path problem, and how can I check? I had assumed that
/sw/lib/ should be visible to the linker, since it's fink's standard lib
directory and I've compiled many packages with fink.
Thanks for any hint
Kaspar
--
Kaspar Pflugshaupt
Geobotanisches Institut
Zuerichbergstr. 38
CH-8044 Zuerich
Tel. ++41 1 632 43 19
Fax ++41 1 632 12 15
mailto:pflugshaupt at geobot.umnw.ethz.ch
privat:pflugshaupt at mails.ch
http://www.geobot.umnw.ethz.ch
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list