Skip to content
Back to formatted view

Raw Message

Message-ID: <63AD7A8C-49F9-11D8-84F8-000393AA6416@paradise.net.nz>
Date: 2004-01-18T21:00:47Z
From: Geoff Grimwood
Subject: RMySQL : Mac : bus error at dbConnect time
In-Reply-To: <7B7CD71E-4685-11D8-B58F-000393AA6416@paradise.net.nz>

Any help on this will be greatly appreciated.

Regards

Geoff

Version 1.8.1 Patched (2004-01-15), ISBN 3-900051-00-3

 >   library(RMySQL)
 >   library(DBI)
 >   drv<-dbDriver("MySQL")
 > drv
<MySQLDriver:(5415)>
 > dbConnect(drv,dbname="mysql",user="root",password="******")
Bus error

RMySQL 0.5-3
MySQL is working fine and is 4.0.17
R is fine apart from this
Mac OS 10.2.8, fink, et al (a big et al)

R built using

  ./configure --enable-R-shlib --with-blas=-framework vecLib 
--with-lapack

(It fails to build using ./configure with no options)

RMySQL installed using

setenv PKG_CPPFLAGS '-I/usr/local/mysql/include -I/sw/include/gnugetopt'
setenv PKG_LIBS '-L/usr/local/mysql/lib -lmysqlclient -lgnugetopt'
R CMD INSTALL --configure-args='--with-mysql-dir=/usr/local/mysql' 
RMySQL_0.5-3.tar.gz

[SIDLAW02:~geoff/heaven/src] root# mysql_config
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS]
Options:
         --cflags         [-I/usr/local/mysql/include -O3 
-fno-omit-frame-pointer]
         --include        [-I/usr/local/mysql/include]
         --libs           [-L/usr/local/mysql/lib -lmysqlclient -lz -lm]
         --libs_r         [-L/usr/local/mysql/lib -lmysqlclient_r -lz 
-lm]
         --socket         [/tmp/mysql.sock]
         --port           [3306]
         --version        [4.0.17]
         --libmysqld-libs [-L/usr/local/mysql/lib -lmysqld -lz -lm]