Possible Duplicate:
adding RMySQL package to R fails?
I have R installed on two machines running Windows 7 x64 and Cent Os x64. I am having hard time installing a package to connect to my mysql database. Database is on the Cent OS box but I can not connect to it on either machines. Both of them have R Studio installed.
The R book I have suggests installing RMySQL package but when I try to install it, it spits out the same error on both machines.
package 'RMySQL' is not available (for R version 2.15.0)
How can I fix this?
Update:
I tried running install.packages('RMySQL',type='source')
which worked in my linux box but it spits out in both console and in rstudio the same message below for my windows machine.
> install.packages('RMySQL',type='source')
Installing package(s) into 'C:/Users/user/Documents/R/win-library/2.15'
(as 'lib' is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'http://ftp.osuosl.org/pub/cran/src/contrib/RMySQL_0.9-3.tar.gz'
Content type 'application/x-gzip' length 165363 bytes (161 Kb)
opened URL
downloaded 161 Kb
* installing *source* package 'RMySQL' ...
** package 'RMySQL' successfully unpacked and MD5 sums checked
ERROR: configuration failed for package 'RMySQL'
* removing 'C:/Users/user/Documents/R/win-library/2.15/RMySQL'
The downloaded source packages are in
'C:\Users\user\AppData\Local\Temp\RtmpsRHukJ\downloaded_packages'
Warning message:
In install.packages("RMySQL", type = "source") :
installation of package 'RMySQL' had non-zero exit status
Update 2:
I've set my path variable etc in windows so I can try it via cmd. Here is the output from cmd.
* installing to library 'C:/Users/user/Documents/R/win-library/2.15'
* installing *source* package "RMySQL" ...
** package 'RMySQL' successfully unpacked and MD5 sums are checked
ERROR: configuration failed for package 'RMySQL'
* removing ...