Hi all,

Not sure if this is the best list, please point me to a more appropriate list 
if necessary.

Running Mac OSX 10.7.1
R version 2.13.1 Patched (2011-08-14 r56741)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

I have a locally developed library (libmlalgs), which I am able to install via 
the command line:
sudo R CMD INSTALL libmlalgs
In the 
/Library/Frameworks/R.framework/Versions/2.13/Resources/library/libmlalgs there 
is a .so file
/Library/Frameworks/R.framework/Versions/2.13/Resources/library/libmlalgs/libs/x86_64/libmlalgs.so

This runs and installs OK.
I am able to run R64 in the command line and load the libmlalgs library fine :)
I am able to use Rstudio and load the libmlalgs library fine.

However, when using the R64.app and try and load the library within the GUI I 
am getting the following error:
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object 
'/Library/Frameworks/R.framework/Versions/2.13/Resources/library/libmlalgs/libs/x86_64/libmlalgs.so':
  
dlopen(/Library/Frameworks/R.framework/Versions/2.13/Resources/library/libmlalgs/libs/x86_64/libmlalgs.so,
 6): Library not loaded: libRblas.dylib
  Referenced from: 
/Library/Frameworks/R.framework/Versions/2.13/Resources/library/libmlalgs/libs/x86_64/libmlalgs.so
  Reason: image not found
Error in library(libmlalgs) : .First.lib failed for 'libmlalgs'

I know the libmlalgs.so is in the right place and the permissions look OK:
-rwxr-xr-x  1 root  admin  58384  3 Oct 14:30 libmlalgs.so

So I am stumped as to why the GUI is unable to read the file.

Any pointers would very welcome. As I am a textmate user and it passes the code 
to the R64.app, I currently stuck with either command line or Rstudio (it's 
nice but is currently missing some key features textmate has)


Many thanks,
Noel Faux
----
NHMRC Post Doctoral Fellow
Australian Imaging Biomarker Lifestyle (AIBL) flagship
Mental Health Research Institute
The University of Melbourne
----
155 Oak St, Parkville
Victoria 3052
Australia
T: +613 9389 2943
----
National Neuroscience Facility
Level 3, Alan Gilbert Building
161 Barry Street, Carlton
Victoria 3010
Australia
T: +613 8344 1944
e-mail: nf...@unimelb.edu.au
www.mhri.edu.au
biocoder: http://biocoders.net/members/nfaux/
----------------
This email and any attachments are confidential. They ma...{{dropped:14}}

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to