[R-SIG-Mac] RMySQL with R 2.1.1 and Tiger 10.4

Bill Northcott w.northcott at unsw.edu.au
Mon Sep 26 14:24:31 CEST 2005

On 23/09/2005, at 8:00 PM, Richard Piper wrote:
> Loading required package: DBI
> Error in dyn.load(x, as.logical(local), as.logical(now)) :
>      unable to load shared library '/Library/Frameworks/R.framework/
> Resources/library/RMySQL/libs/RMySQL.so':
>    dlopen(/Library/Frameworks/R.framework/Resources/library/RMySQL/
> libs/RMySQL.so, 6): Symbol not found: _printf$LDBLStub
>    Referenced from: /Library/Frameworks/R.framework/Resources/library/
> RMySQL/libs/RMySQL.so
>    Expected in: flat namespace
> Error in library(RMySQL) : .First.lib failed for 'RMySQL'

This error is caused by linking together object modules (static  
libraries) compiled with a mixture of gcc-3.x and gcc-4.x.  It is  
quite easy to fall into this trap on Tiger because the default  
compiler is gcc-4 but you might build R code with gcc-3.3 to use g77.

Bill Northcott

More information about the R-SIG-Mac mailing list