An embedded and charset-unspecified text was scrubbed... Name: not available Url: https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20071010/527fb605/attachment.pl
dyn.load() fails with R 2.6.0
2 messages · Enrico Rossi, Simon Urbanek
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 [[alternative HTML version deleted]]
_______________________________________________ R-SIG-Mac mailing list R-SIG-Mac at stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-mac