[R-SIG-Mac] Fwd: rgl 0.81 in R 2.8 on Mac OS X
murdoch at stats.uwo.ca
Wed Oct 22 13:42:27 CEST 2008
Kenneth Knoblauch wrote:
> Hi again, Duncan,
> One more piece of information that seems relevant. I said that
> it rgl compiled by which I meant that it got to the end of
> the compilation and left an rgl package in my library directory,
> but looking back through the compilation, I found the following
> error which does seem to be pertinent, if that might help...
> mkdir -p AGL
> mv AGL/* .
> MAKINGAGL=TRUE /Library/Frameworks/R.framework/Resources/bin/R CMD
> SHLIB -o aglrgl.so *.cpp *.c
> mv: rename AGL/* to ./*: No such file or directory
> make: [aglrgl.so] Error 1 (ignored)
That's not a problem -- the build script builds 2 versions of some
files, and the first time through they don't exist, so you get that
error, which is ignored.
The problem is with the Freetype library, which is being detected at
build time but which is not available at run time. All I can say is
that it works for me, I don't know why it doesn't work for you. (I'm on
OS X 10.4.11, you're probably on 10.5?) You can try to configure rgl
without Freetype by using --disable-ftgl as a configure option, i.e.
R CMD INSTALL --configure-args=--disable-ftgl ...
but I don't know how to get it to work.
I've copied this to R-sig-mac; maybe someone there can suggest a fix.
> Thank you.
> ----- Forwarded message from ken.knoblauch at inserm.fr -----
> Date: Wed, 22 Oct 2008 10:06:21 +0200
> From: Kenneth Knoblauch <ken.knoblauch at inserm.fr>
> Reply-To: Kenneth Knoblauch <ken.knoblauch at inserm.fr>
> Subject: rgl 0.81 in R 2.8 on Mac OS X
> To: Duncan Murdoch <murdoch at stats.uwo.ca>
> Hi Duncan,
> I was able to install rgl with no problems from source
> on R 2.8 but get an error when I try to load it:
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
> unable to load shared library
> 6): Symbol not found: _FT_Attach_File
> Referenced from:
> Expected in: dynamic lookup
> Error : .onLoad failed in 'loadNamespace' for 'rgl'
> Error: package/namespace load failed for 'rgl'
> The shared library is there:
> [Macintosh-6:rgl/libs/i386] knoblauch% pwd
> [Macintosh-6:rgl/libs/i386] knoblauch% ls
> aglrgl.so* rgl.so*
> Here is some further information:
> R version 2.8.0 (2008-10-20)
> attached base packages:
>  stats graphics grDevices utils datasets methods base
> loaded via a namespace (and not attached):
>  tools_2.8.0
> Any ideas? Please don't slay the messenger. Hope that all is well
More information about the R-SIG-Mac