简体   繁体   English

在Windows 8.1中安装RMySQL时的另一个错误

[英]Another error when installing RMySQL in Windows 8.1

I have a Windows 8.1 machine and use R 3.0.3 and RTools 30. I'm trying to install RMySQL and I followed the instructions from http://www.ahschulz.de/2013/07/23/installing-rmysql-under-windows/ and another StackOverflow posts but I get this error over and over: 我有一台Windows 8.1计算机,并使用R 3.0.3和RTools30。我正在尝试安装RMySQL,我按照http://www.ahschulz.de/2013/07/23/installing-rmysql-under的说明进行操作-windows /和另一个StackOverflow帖子,但是我一遍又一遍地收到此错误:

  installing *source* package 'RMySQL' ... package 'RMySQL' successfully unpacked and MD5 sums checked 0 [main] sh 3240 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer. Please report this problem to the public mailing list cygwin@cygwin.com checking for $MYSQL_HOME... â€C:/Program Files/MySQL/MySQL Server 5.6/†test: Files/MySQL/MySQL: unknown operand cygwin warning: MS-DOS style path detected: C:/PROGRA~1/R/R-30~1.3/bin/x64/Rscript Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-30~1.3/bin/x64/Rscript CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames libs Warning: this package has a non-empty 'configure.win' file, so building only the main architecture 0 [main] make 4640 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer. Please report this problem to the public mailing list cygwin@cygwin.com cygwin warning: MS-DOS style path detected: C:/PROGRA~1/R/R-30~1.3/etc/x64/Makeconf Preferred POSIX equivalent is: /cygdrive/c/PROGRA~1/R/R-30~1.3/etc/x64/Makeconf CYGWIN environment variable option "nodosfilewarning" turns off this warning. Consult the user's guide for more details about POSIX paths: http://cygwin.com/cygwin-ug-net/using.html#using-pathnames gcc -m64 -I"C:/PROGRA~1/R/R-30~1.3/include" -DNDEBUG -I"â€C:/Program Files/MySQL/MySQL Server 5.6/â€"/include -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -std=gnu99 -mtune=core2 -c RS-DBI.c -o RS-DBI.o RS-DBI.c: In function 'RS_na_set': RS-DBI.c:1219:11: warning: variable 'c' set but not used [-Wunused-but-set-variable] gcc -m64 -I"C:/PROGRA~1/R/R-30~1.3/include" -DNDEBUG -I"â€C:/Program Files/MySQL/MySQL Server 5.6/â€"/include -I"d:/RCompile/CRANpkg/extralibs64/local/include" -O2 -Wall -std=gnu99 -mtune=core2 -c RS-MySQL.c -o RS-MySQL.o In file included from RS-MySQL.c:22:0: RS-MySQL.h:32:19: fatal error: mysql.h: No such file or directory compilation terminated. make: *** [RS-MySQL.o] Error 1 Warning: running command 'make -f "Makevars.win" -f "C:/PROGRA~1/R/R-30~1.3/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-30~1.3/share/make/winshlib.mk" SHLIB="RMySQL.dll" WIN=64 TCLBIN=64 OBJECTS="RS-DBI.o RS-MySQL.o"' had status 2 ERROR: compilation failed for package 'RMySQL' removing 'C:/Users/Yohanan/Documents/R/win-library/3.0/RMySQL' Warning in install.packages : running command '"C:/PROGRA~1/R/R-30~1.3/bin/x64/R" CMD INSTALL -l "C:\\Users\\Yohanan\\Documents\\R\\win-library\\3.0" C:\\Users\\Yohanan\\AppData\\Local\\Temp\\RtmpysBrc8/downloaded_packages/RMySQL_0.9-3.tar.gz' had status 1 Warning in install.packages : installation of package 'RMySQL' had non-zero exit status 

Can you please help me? 你能帮我么? Thank you... 谢谢...

Probably something went wrong with your MySQL installation. 您的MySQL安装可能出了点问题。

The error refers to registry keys missing as documented here: MySQL Manual - MySQL Installation , searching for SOFTWARE\\MySQL AB reveals the section stating how the registry should look like. 错误是指注册表项丢失,如此处记录: MySQL手册-MySQL安装 ,搜索SOFTWARE \\ MySQL AB会显示说明注册表外观的部分。 With regedit .exe you can fix this yourself. 使用regedit .exe,您可以自己修复此问题。

Information on how to use regedit.exe: Techsupportalert - Regedit in One Easy Lesson 有关如何使用regedit.exe的信息: Techsupportalert-一个简单的课程中的Regedit

It worked for me with the same problem 它对我有同样的问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM