[R-sig-Geo] compiling spproj on osx

Horacio Samaniego horacio.samaniego at gmail.com
Fri Jan 27 02:15:31 CET 2006


I got to the point where I would need the spproj package to reproject  
som sp dataframes. However, when I try to install the package from  
http://r-spatial.sourceforge.net/R/src/contrib/spproj_0.3-4.tar.gz,   
I get the following error.
Is this an incompatibility with os x 10.4 or am I missing something  
in my path?


########## error output ##############

su-2.05b# R CMD INSTALL spproj_0.3-4.tar.gz
* Installing *source* package 'spproj' ...
creating cache ./config.cache
checking for pj_init_plus in -lproj... yes
checking how to run the C preprocessor... cc -E
checking for proj_api.h... yes
updating cache ./config.cache
creating ./config.status
creating src/Makevars
** libs
gcc-3.3 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/ 
include  -I/usr/local/include   -fno-common  -g -O2 -c projectit.c -o  
projectit.o
gcc-3.3 -bundle -flat_namespace -undefined suppress -L/usr/local/lib - 
o spproj.so projectit.o -lproj -lcc_dynamic -F/Library/Frameworks/ 
R.framework/.. -framework R
ld: can't locate file for: -lcc_dynamic
make: *** [spproj.so] Error 1
ERROR: compilation failed for package 'spproj'
** Removing '/Library/Frameworks/R.framework/Versions/2.2/Resources/ 
library/spproj'

#################################


Any hint is appreciated!
thanks

H




More information about the R-sig-Geo mailing list