[R-sig-Geo] compiling spproj on osx

Roger Bivand Roger.Bivand at nhh.no
Fri Jan 27 09:15:00 CET 2006


On Fri, 27 Jan 2006, Horacio Samaniego wrote:

> 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?

The authors and maintainers have no access to OSX, so we can't help. Can 
you build and install other source packages including compiled C code? Was 
your R installed from binary or source? Which OSX is this? Have you looked 
on the R-sig-Mac list archives https://stat.ethz.ch/pipermail/r-sig-mac/. 
I guess you have looked at the FAQ - "2.1.3 libreadline 4.3 or higher" 
mentions the -lcc_dynamic issue, but I don't know if this applies to you. 
There is also a wiki at http://wiki.urbanek.info/index.cgi?HomePage

Without (intimate) knowledge of OSX (with many versions) and the build 
trains (with even more versions), it isn't easy to help.

Roger
 
> 
> 
> ########## 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
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no




More information about the R-sig-Geo mailing list