Skip to content

problem with rgl

10 messages · Byron Ellis, Dan Putler, Simone Gabbriellini +2 more

#
Hello List,
I have this error when I try to load rgl package:

Error in dyn.load(x, as.logical(local), as.logical(now)) :
	unable to load shared library 
"/Library/Frameworks/R.framework/Resources/library/rgl/libs/rgl.so":
   dlcompat: dyld: /Applications/R.app/Contents/MacOS/R can't open 
library: /usr/local/lib/libpng12.0.dylib  (No such file or directory, 
errno = 2)
Error in library(rgl) : .First.lib failed for 'rgl'
Error in .C(symbol.C("rgl_quit"), success = FALSE, PACKAGE = "rgl") :
	C function name not in DLL for package rgl

can you help me?

Best regards,
Simone
#
You don't have libpng installed.
On Mar 21, 2005, at 2:06 PM, simone gabbriellini wrote:

            
---
Byron Ellis (ellis@stat.harvard.edu)
"Oook" -- The Librarian
#
Hi,

Do you have Apple's Xcode tools loaded on your machine?

Dan Putler
On 21-Mar-05, at 2:06 PM, simone gabbriellini wrote:

            
#
I do have it, I have libpng 1.2.5 installed in /usr/local/png_1.2.5

Il giorno 21/mar/05, alle 23:10, Byron Ellis ha scritto:
#
Hello,

yes I do

Simone

Il giorno 21/mar/05, alle 23:13, Dan Putler ha scritto:
#
Ah. I take it you're using a pre-built version of RGL? Its looking for 
libpng in /usr/local/lib rather than /usr/local/png_1.2.5 so you're 
probably better off rebuilding RGL yourself (or descending into symlink 
hell). I don't use RGL personally so I don't know what building it 
would entail---I would guess Developer Tools + X11 SDK+libpng+libjpg at 
the very minimum.
On Mar 21, 2005, at 2:15 PM, simone gabbriellini wrote:

            
---
Byron Ellis (ellis@stat.harvard.edu)
"Oook" -- The Librarian
#
Simone,
On Mar 21, 2005, at 5:15 PM, simone gabbriellini wrote:

            
But obviously you don't have it in /usr/local/lib/libpng12.0.dylib  
where it is expected.

You didn't even tell us whether you use binary or source version of  
the package or how you installed it. Chances are that you're trying  
to use the binary version and your configuration is different from  
the setup used for the binary. You can either compile the package  
from sources or install any missing libraries to the right places.

Cheers,
Simon
#
well, R looks for the libpng12.0.dylib file in  /usr/local/lib/.
There it find an alias which points to the real folder.
I saw that that alias is broken (it doesn't point to anywhere), and  
maybe all my problem can be solved by repairing that alias.

Do you know how to make an alias via bash, cause I need superuser  
privilege to make changes in those folders?

I used rgl binary version, and Bill Northcott libpng package.

Cheers,
simone


Il giorno 21/mar/05, alle 23:23, Byron Ellis ha scritto:
#
On 21/mar/05, at 23:30, Simon Urbanek wrote:

            
It seems Simone is using the CRAN build.
In this case, please read the section on libpng at  
http://www.economia.unimi.it to install the right dll in the right  
places.
Hope this helps
stefano
#
On 21/mar/05, at 23:36, stefano iacus wrote:

            
ops the right url is

http://www.economia.unimi.it/R