[R] osx/fink: cannot do "R INSTALL" (library mixup)
Dan Kelley
Dan.Kelley at Dal.Ca
Fri Mar 19 16:09:52 CET 2004
Hello friends. I've just switched from linux to osx, and I'm liking
it, except now that I'm getting down to brass tacks, and needing to
install some R packages, I'm at a roadblock. I'm hoping someone can
help.
My R is installed from a .dmg, and resides as follows:
$ which R
/usr/local/bin/R
The problem is that I cannot build packages. For example, see the
below (which also indicates that libfrtbegin.a is in the
/sw
directory, i.e. that it was installed by the FINK setup). Does anybody
know how I can solve this problem, e.g. how to alter the
-L(directory)
commands that are employed?
(Aside: I looked for a solution on the R archives. Also, I've tried to
make my subject-line clear enough that an answer will benefit other
osx/fink users. Thanks!!)
$ R INSTALL pspline
* Installing *source* package 'pspline' ...
** libs
gcc -bundle -flat_namespace -undefined suppress -L/usr/local/lib -o
pspline.so Pspline.o -L/usr/local/lib
-L/usr/local/lib/gcc/powerpc- apple-darwin6.6/3.4
-L/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4/../../.. -lfrtbegin
-lg2c -lSystem -lcc_dynamic
ld: warning -L: directory name
(/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4) does not exist
ld: warning -L: directory name
(/usr/local/lib/gcc/powerpc-apple-darwin6.6/3.4/../../..) does not
exist
ld: can't locate file for: -lfrtbegin
make: *** [pspline.so] Error 1
ERROR: compilation failed for package 'pspline'
** Removing '/Applications/StartR.app/RAqua.app/Contents/pspline'
$ locate frtbegin
/sw/lib/libfrtbegin.a
Dan E. Kelley, Associate Professor phone:(902)494-1694
Oceanography Department, Dalhousie University fax:(902)494-2885
Halifax, Nova Scotia mailto:Dan.Kelley at Dal.CA
Canada B3H 4J1 http://www.phys.ocean.dal.ca/~kelley/Kelley_Dan.html
More information about the R-help
mailing list