[R-sig-Geo] compiling spproj on osx

Roger Bivand Roger.Bivand at nhh.no
Fri Jan 27 16:21:54 CET 2006


On Fri, 27 Jan 2006, Horacio Samaniego wrote:

> With the kind insight of Roger, I have been able to identify and  
> solve the problem. Here is a summary:
> 
> If you have upgraded your OSX system from Panther to Tiger you should  
> know that the compilers have changed from gcc3.3 to gcc4.0 this  
> creates some instabilities when it comes to compile R packages which  
> are well explained here: https://stat.ethz.ch/pipermail/r-sig-mac/ 
> 2005-July/002031.html
> 
> in short you need to make sure that the system uses gcc-3.3 by  
> running `gcc_select 3.3' before you compile the package which in my  
> case was spproj and spGDAL
> 
> This solved my installation issue, I hope it'll help.

Thank you for this clear report - because this list can also be searched 
by RSiteSearch() from within R, others will benefit from your solution!

Roger

> 
> thanks,
> 
> Horacio
> 
> 
> On Jan 27, 2006, at 9:15 AM, Roger Bivand wrote:
> 
> 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