I'm running into an issue installing the RMySQL
package on OS X. Package installation seems to work, but when package loading is tested, it invariably fails:
* installing *source* package ‘RMySQL’ ... . .(omitted for brevity. see the gist linked below for the full installation log) . ** testing if installed package can be loaded Error : .onLoad failed in loadNamespace() for 'RMySQL', details: call: dyn.load(file, DLLpath = DLLpath, ...) error: unable to load shared object '/Library/Frameworks/R.framework/Versions/2.15/Resources/library/RMySQL/libs/i386/RMySQL.so': dlopen(/Library/Frameworks/R.framework/Versions/2.15/Resources/library/RMySQL/libs/i386/RMySQL.so, 6): Symbol not found: _mysql_affected_rows Referenced from: /Library/Frameworks/R.framework/Versions/2.15/Resources/library/RMySQL/libs/i386/RMySQL.so Expected in: flat namespace in /Library/Frameworks/R.framework/Versions/2.15/Resources/library/RMySQL/libs/i386/RMySQL.so Error: loading failed Execution halted ERROR: loading failed * removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/RMySQL’
The full installation log can be found on this gist.
This seems to have something to do with running R in 32 bit vs. 64 bit mode. I've read through and tried everything in these to no avail:
- RMySQL with 64-bit R on Mac OS X
- RMySQL INSTALL instructions
- INSTALLING 64 AND 32-BIT PACKAGES IN R ON A MAC
System information:
- R 2.15.2
- OS X 10.8.3 (Mountain Lion)
- MySQL 5.1.45
- XCode 3.2