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

时间:2014-05-08 15:14:26

标签: mysql windows r

我有一台Windows 8.1机器并使用R 3.0.3和RTools 30.我试图安装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
你能帮帮我吗?谢谢......

1 个答案:

答案 0 :(得分:0)

您的MySQL安装可能出现问题。

错误是指缺少注册表项,如下所示: MySQL Manual - MySQL Installation,搜索 SOFTWARE \ MySQL AB 会显示说明注册表应如何显示的部分。使用 regedit .exe,您可以自行解决此问题。

有关如何使用regedit.exe的信息:Techsupportalert - Regedit in One Easy Lesson

它对我有同样的问题