[R] Installing RMySQL on Mac OS X 10.4.4
Anthony Darrouzet-Nardi
anthony at darrouzet-nardi.net
Wed Jan 18 04:05:18 CET 2006
When I try to install RMySQL from source on Mac OS X 10.4.4 (iMac G5
2.1 Ghz), I get this...
[tcom122-223-dhcp:2.1.1/Resources/library] root# setenv PKG_CPPFLAGS
/usr/local/mysql/lib
[tcom122-223-dhcp:2.1.1/Resources/library] root# setenv PKG_LIBS
/usr/local/mysql/include
[tcom122-223-dhcp:2.1.1/Resources/library] root# R CMD INSTALL ~/dl/RMySQL/
* Installing *source* package 'RMySQL' ...
loading cache ./config.cache
checking how to run the C preprocessor... (cached) cc -E
checking for compress in -lz... (cached) yes
checking for getopt_long in -lc... (cached) yes
checking for mysql_init in -lmysqlclient... (cached) no
checking for mysql.h... (cached) no
creating ./config.status
creating src/Makevars
** libs
gcc-3.3 -no-cpp-precomp
-I/Library/Frameworks/R.framework/Resources/include
/usr/local/mysql/lib -I/usr/local/include -fno-common -g -O2 -c
RS-DBI.c -o RS-DBI.o
gcc-3.3: cannot specify -o with -c or -S and multiple compilations
make: *** [RS-DBI.o] Error 1
ERROR: compilation failed for package 'RMySQL'
** Removing
'/Library/Frameworks/R.framework/Versions/2.1.1/Resources/library/RMySQL'
** Restoring previous
'/Library/Frameworks/R.framework/Versions/2.1.1/Resources/library/RMySQL'
Any suggestions for how to successfully install RMySQL on my system
would be appreciated.
Thanks,
Anthony
More information about the R-help
mailing list