Have you reconfigured and recompiled R?
If your conpilers have been updated, you may well need to do so.
On Thu, 27 Apr 2006, Rolf Turner wrote:
> Our computing services people have recently reconfigured the Sun
> compilers structure on our network, and I can no longer install, on
> our Sun/Solaris machine, a certain package (spatstat) with which I am
> heavily involved. (The same problem may well pertain to other
> packages as well; I haven't yet experimented except with spatstat.)
>
> Strictly speaking I can ***install*** it, but when I try
> to ***load*** it I get an error message:
>
>
===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+==>
> library(spatstat)
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
> unable to load shared library
'/home/faculty/rolf/Rlib/spatstat/libs/spatstat.so':
> ld.so.1: R: fatal: relocation error: file
/home/faculty/rolf/Rlib/spatstat/libs/spatstat.so: symbol __f95_sign: referenced
symbol not found
> Error in library(spatstat) : .First.lib failed for 'spatstat'
>
===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+==>
> so something is going wrong with the install.
>
> I did nm on spatstat.so, and sure enough got
>
>
===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+==> $
nm spatstat.so | grep f95
> [189] | 185004| 4|OBJT |LOCL |0 |20 |__f95__happiness
> .
> .
> .
> [195] | 185008| 4|OBJT |LOCL |0 |20 |__f95__happiness
> [512] | 0| 0|FUNC |GLOB |0 |UNDEF |__f95_sign
>
===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+===+==>
> so, yep, it's undefined. But what do I do about it?
>
> The ``R CMD INSTALL spatstat'' runs without complaint.
>
> Where is ``__f95_sign'' coming from? How do I rearrange things so
> that this symbol *can* be found? Could someone please gently
> point me in the right direction? I haven't a clue where to start. :-(
>
> Thanks for any hints.
>
> cheers,
>
> Rolf Turner
> rolf at math.unb.ca
>
> P. S. Version info:
>
> > version
> _
> platform sparc-sun-solaris2.9
> arch sparc
> os solaris2.9
> system sparc, solaris2.9
> status
> major 2
> minor 2.0
> year 2005
> month 10
> day 06
> svn rev 35749
> language R
>
> P^2. S. What's with this ``__f95__happiness'' jazz???
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
>
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595