[R-SIG-Mac] Cannot load RMySQL

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Nov 6 14:41:44 CET 2008


On Thu, 6 Nov 2008, Felix Lamp wrote:

> Hello,
>
> after upgrading to R 2.8.0 I cannot load the package RMySQL anymore. I
> updated the package but it still does not work (see below).

You installed a version built for R 2.7.x.  Where did you get yours from?

Under the CRAN build of R, you need packages compiled for the same y in 
2.y.z.  The version of RMySQL that I get from CRAN by 
install.packages() works for me.

>
>> sessionInfo()
> R version 2.8.0 (2008-10-20)
> i386-apple-darwin8.11.1
>
> locale:
> en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] RODBC_1.2-3       DBI_0.2-4         TeachingDemos_2.3 maps_2.0-40
>
> loaded via a namespace (and not attached):
> [1] tools_2.8.0
>> library("RMySQL")
> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>  unable to load shared library
> '/Library/Frameworks/R.framework/Versions/2.8/Resources/library/RMySQL/libs/i386/RMySQL.so':
>
> dlopen(/Library/Frameworks/R.framework/Versions/2.8/Resources/library/RMySQL/libs/i386/RMySQL.so,
> 6): Library not loaded:
> /Library/Frameworks/R.framework/Versions/2.7/Resources/lib/libR.dylib

*** alarm bells *** this says 2.7.

>  Referenced from:
> /Library/Frameworks/R.framework/Versions/2.8/Resources/library/RMySQL/libs/i386/RMySQL.so
>  Reason: image not found
> Error: package/namespace load failed for 'RMySQL'
>>
>
> I would appreciate your help!
>
> Best,
>
> Felix
>
> 	[[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
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-SIG-Mac mailing list