Couldn't load using library(spatstat)
got this error:
> library(spatstat)
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared library 
'/usr/local/R-2.8.0/lib/R/library/spatstat/libs/spatstat.so':
  ld.so.1: R: fatal: relocation error: file 
/usr/local/R-2.8.0/lib/R/library/spatstat/libs/spatstat.so: symbol 
__gxx_personality_v0: referenced symbol not found
Error in library(spatstat) : .First.lib failed for 'spatstat'
> 

Regards,
/M



Roger Bivand <Roger.Bivand@nhh.no> 
2008-11-20 13:33
Sänd svar till
Roger.Bivand@nhh.no


Till
Mikael Carlsson <Mikael.Carlsson@sgu.se>
Kopia
r-sig-geo@stat.math.ethz.ch
Ärende
Re: [R-sig-Geo] Missing library






On Thu, 20 Nov 2008, Mikael Carlsson wrote:

> Hello!
>
> I'm running R2.8.0 , Solaris and a Sparc machine
>
> Get the following error, and don't know what to do...

The problem is in loading spatstat. Can you load spatstat manually:

library(spatstat)

When that works, the coercion should work too. I expect that spatstat 
isn't installed adequately (built against an older version of some 
library, probably the g++ runtime library from googling on the missing 
function).

Roger

>
> Regards,
> Mikael
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
-
> - - - - - - - - - - - - - - - - - - - - - -
> library(akima)
> library(maptools)
> library(sp)
>
> cumark <- read.table("sydnorr5000.txt", header=T, sep = ";")
> attach(cumark)
> vew <- as.vector(ew)
> vns <- as.vector(ns)
> vcu <- as.vector(cu)
>
> fcumark <- data.frame(vew, vns, vcu)
>
> coordinates(fcumark) <- ~vew+vns
>
> L1 <-round((max(vew)- min(vew))/100,0)
> L2 <-round((max(vns)- min(vns))/100,0)
>
>
> fcumark.interp.old <- interp.old(vew, vns, vcu,
>                xo= seq(min(vew), max(vew), length = L1),
>                yo= seq(min(vns), max(vns), length = L2),
>                ncp = 0,
>                extrap= FALSE,
>                duplicate = "mean",
>                dupfun = NULL)
>
> fcumark.interp.old.grid <-
> as.SpatialGridDataFrame.im(as.im(fcumark.interp.old))
>
> Loading required package: deldir
> deldir 0.0-7
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>  unable to load shared library
> '/usr/local/R-2.8.0/lib/R/library/spatstat/libs/spatstat.so':
>  ld.so.1: R: fatal: relocation error: file
> /usr/local/R-2.8.0/lib/R/library/spatstat/libs/spatstat.so: symbol
> __gxx_personality_v0: referenced symbol not found
> Error in as.SpatialGridDataFrame.im(as.im(fcumark.interp.old)) :
>  could not find function "as.im"
>
> (program stop!)
>
>                [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo@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@nhh.no




	[[alternative HTML version deleted]]


