[R-SIG-Mac] dyn.load() fails with R 2.6.0

Tiago R Magalhães tiago17 at gmail.com
Fri Oct 12 12:45:15 CEST 2007


Dear Mailing list, Enrico, Simon,

After installing to R.2.6, I got the same exact problem when installed 
the SNPassoc package; it seemed to be looking for 2.5 (

> /Library/Frameworks/R.framework/Versions/2.5/Resources/lib/ 

I ended up uninstallling R and reinstalling it from scratch; now it's 
working.

Cheers,
Tiago

Enrico,

On Oct 10, 2007, at 10:02 PM, Enrico Rossi wrote:

> > After upgrading to R 2.6.0, I'm having trouble loading compiled  
> > Fortran code into R via dyn.load().
> >
>   
>> >> dyn.load("test.so")
>>     
> > Error in dyn.load("test.so") :
> >   unable to load shared library '/Users/erossi/test/test.so':
> >   dlopen(/Users/erossi/test/test.so, 6): Library not loaded:
> > /Library/Frameworks/R.framework/Versions/2.5/Resources/lib/ 
> > libRlapack.dylib
> >   Referenced from: /Users/erossi/test/test.so
> >   Reason: image not found
> >
> > Attempting to re-compile using R CMD SHLIB says that the file is up- 
> > to-date, and deleting the built file and recompiling makes no  
> > difference. The error message seems to be referring to the 2.5  
> > framework, not the 2.6 framework ... could that be the problem?
> >
>   

Yes, you seem to be mixing R versions when compiling your code. I  
suspect that you have an older R on your PATH so you are compiling  
for the wrong version of R. Please double-check your R versions. If  
the problem persists, please post the full output of the compilation  
and the result of otool -L test.so

Cheers,
Simon




> > I also tried the R-patched (2007-10-10 r43136) release from
> > r.research.att.net, but that didn't resolve the problem.
> > Does anyone know what I'm doing wrong?
> >
> > Thank you!
> > Enrico Rossi
> >
> >



More information about the R-SIG-Mac mailing list