RMySQL installation issue with Mysql 5.5

巧了我就是萌 提交于 2019-12-11 11:59:33

问题


I'm quite new to R, but I've some experience in programming. I'm trying to install RMySQL on Windows 7 with MySQL Workbench 5.2 and I keep on getting the same errors. I've already checked different procedures, but keep on getting stuck:

http://vhaguiar.wordpress.com/2011/06/06/r-how-to-install-rmysql-in-windows-7-with-mysql-5-5/

http://biostat.mc.vanderbilt.edu/wiki/Main/RMySQL

MySQL is up and running, I have moved libmysql.lib and libmysql.dll, but I keep on getting the following errors. I guess I cannot see the problem for what it really is. Do you have any suggestion?

install.packages("RMySQL", type="source")
--- Please select a CRAN mirror for use in this session ---
provo con l'URL 'http://cran.rakanu.com/src/contrib/RMySQL_0.8-0.tar.gz'
Content type 'application/x-gzip' length 160735 bytes (156 Kb)
URL aperto
downloaded 156 Kb

 ** installing *source* package 'RMySQL' ...
 ERROR: configuration failed for package 'RMySQL'
 * removing 'C:/Program Files/R/R-2.13.2/library/RMySQL'
 The downloaded packages are in
 ‘C:\Users\Matteo\AppData\Local\Temp\RtmpYHjzuR\downloaded_packages’
 Warning messages:
 1: running command 'C:/PROGRA~1/R/R-213~1.2/bin/i386/R CMD INSTALL -l "C:/Program               Files/R/R-2.13.2/library"        C:\Users\Matteo\AppData\Local\Temp\RtmpYHjzuR/downloaded_packages/RMySQL_0.8-0.tar.gz' had status 1 
 2: In install.packages("RMySQL", type = "source") :
   installation of package 'RMySQL' had non-zero exit status
  Sys.getenv('MYSQL_INC')
 [1] ""
   Sys.getenv('MYSQL_LIB')
 [1] ""
 Sys.getenv('MYSQL_DIR')
 [1] ""
 Sys.getenv('MYSQL_HOME')
 [1] "C:/PROGRA~1/MySQL/MYSQLS~1.5/"
 Sys.getenv('MYSQL_INC')
 [1] ""
  Sys.getenv('MYSQL_LIB')
 [1] ""
  Sys.getenv('MYSQL_DIR')
 [1] ""
  Sys.getenv('MYSQL_HOME')
 [1] "C:/PROGRA~1/MySQL/MYSQLS~1.5/"*

This is all using R version 2.13.2.


回答1:


I recently installed RMySQL on WinXP 32-bit and had some issues as well. I have documented the issues I had and solutions I found at the following link

I also followed up with the package maintainer a few days ago. I haven't received a response yet. Hopefully we can better document the process. It seems your problem may be solved by issuing the r statement:

Sys.setenv(“MYSQL_HOME”=”C:/PROGRA~1/MySQL/MYSQLS~1.5″)

before installing RMySQL.



来源:https://stackoverflow.com/questions/7804411/rmysql-installation-issue-with-mysql-5-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!