[R] Error loading libraries in MAC

Matthew Keller mckellercran at gmail.com
Thu Apr 19 22:54:54 CEST 2007


HI Mayte & Gregory,

This is probably a question needing to be posted to r-sig-mac. A
search for this problem on that forum turns up lots of hits. I think
everyone is having these problems (which makes me pause about whether
to switch to Mac, given how much I use R). Below is a message from the
r-sig-mac forum from R/Mac guru Simon Urbanek:


Simon Urbanek  to Byron, r-sig-mac
 show details  9:53 am (6 hours ago)


On Apr 19, 2007, at 5:47 AM, Byron Ellis wrote:

> Actually it appears that a variety of packages are doing this
> (gtools did it to me earlier today). Looks like there may be a
> general compilation change, perhaps in preparation for 2.5?
>


Yes, indeed, R 2.5.0 doesn't need the 4.0.3 compilers anymore and
thus no path changes. Unfortunately this seems to have influenced the
2.4 builds process. A hot fix is to install gcc4.0.3 from the full
image of R 2.4.1 (open the installation image, click on "Packages"
and then "gcc4.0.3" to install) or to use R 2.5.0 RC instead. I'll
see if I can find the culprit in the meantime...


On 4/18/07, Gregory Warnes <gregory.warnes at mac.com> wrote:
> I have received a number of reports of problems with recent unversal
> Mac packages from CRAN when used with R 2.4.1.  Has something in the
> build script changed?
>
> -G
>
>
> On Apr 18, 2007, at 4:49PM , Mayte Suarez-Farinas wrote:
>
> > Hi I just installed the gmodels package
> > and the installation was successful but when I was trying to load the
> > library I got an error (see below).
> > Interesting, yesterday I wrote to the maintainer of RSQLite apckage
> > because I got the same error.
> > Does somebody knows what is going on ??
> >
> > thanks,
> > Mayte
> >
> >
> > library(gmodels)
> > 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/gtools/libs/i386/gtools.so':
> >    dlopen(/Library/Frameworks/R.framework/Versions/2.4/Resources/
> > library/gtools/libs/i386/gtools.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/gtools/libs/i386/gtools.so
> >    Reason: image not found
> > Error: package/namespace load failed for 'gmodels'
> >
> > R.Version()
> > $platform
> > [1] "i386-apple-darwin8.8.1"
> >
> > $arch
> > [1] "i386"
> >
> > $os
> > [1] "darwin8.8.1"
> >
> > $system
> > [1] "i386, darwin8.8.1"
> >
> > $status
> > [1] ""
> >
> > $major
> > [1] "2"
> >
> > $minor
> > [1] "4.1"
> >
> > $year
> > [1] "2006"
> >
> > $month
> > [1] "12"
> >
> > $day
> > [1] "18"
> >
> > $`svn rev`
> > [1] "40228"
> >
> > $language
> > [1] "R"
> >
> > $version.string
> > [1] "R version 2.4.1 (2006-12-18)"
> >
> >>
> >
> > ______________________________________________
> > R-help at stat.math.ethz.ch 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.
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>


-- 
Matthew C Keller
Postdoctoral Fellow
Virginia Institute for Psychiatric and Behavioral Genetics



More information about the R-help mailing list