[R] Package loading shows missing libraries in Mac OS X
David Daniel
ddaniel at nmsu.edu
Fri Apr 20 00:15:32 CEST 2007
I've been using R actively for only the past few months under Mac OS
X, but have found a few situations where I cannot get a package to
load. This seems like the same situation reported recently on the
thread "R-2.4.1 for MacOS X - languageR, acepack, Hmisc":
> > library(Hmisc)
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
> unable to load shared library '/Library/Frameworks/R.framework/
> Versions/2.4/Resources/library/Hmisc/libs/i386/Hmisc.so':
> dlopen(/Library/Frameworks/R.framework/Versions/2.4/Resources/
> library/Hmisc/libs/i386/Hmisc.so, 6): Library not loaded: /usr/
> local/gcc4.0/lib/libgfortran.0.dylib
> Referenced from: /Library/Frameworks/R.framework/Versions/2.4/
> Resources/library/Hmisc/libs/i386/Hmisc.so
> Reason: image not found
> Error: package/namespace load failed for 'Hmisc'
I searched for and found the library complained about: "libgfortran.
0.dylib". Then from the unix terminal I created a link to where
Hmisc expected it to be located. Attempting library(Hmisc) again,
got me past the initial error, but resulted in another library not
found in a different location:
> > library(Hmisc)
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
> unable to load shared library '/Library/Frameworks/R.framework/
> Versions/2.4/Resources/library/Hmisc/libs/i386/Hmisc.so':
> dlopen(/Library/Frameworks/R.framework/Versions/2.4/Resources/
> library/Hmisc/libs/i386/Hmisc.so, 6): Library not loaded: /usr/
> local/gcc4.0/i686-apple-darwin8/lib/libgcc_s.1.0.dylib
> Referenced from: /Library/Frameworks/R.framework/Versions/2.4/
> Resources/library/Hmisc/libs/i386/Hmisc.so
> Reason: image not found
> Error: package/namespace load failed for 'Hmisc'
I can find the library named "libgcc_s.1.0.dylib" but I'm not sure
that this is of the i686 flavor which it appears to need or if that
matters.
Ultimately, it appears that the libraries Hmisc needs are either not
present or not where Hmisc expects them to be. I do have the Apple
Developer Tools installed. Any suggestions?
Thanks,
-David
> > version
> _
> platform i386-apple-darwin8.8.1
> arch i386
> os darwin8.8.1
> system i386, darwin8.8.1
> status
> major 2
> minor 4.1
> year 2006
> month 12
> day 18
> svn rev 40228
> language R
> version.string R version 2.4.1 (2006-12-18)
----------------------------------
David Daniel
Associate Professor
University Statistics Center
New Mexico State University
ddaniel at nmsu.edu
More information about the R-help
mailing list