adding RMySQL package to R fails (on Windows)?

后端 未结 11 2540
予麋鹿
予麋鹿 2020-11-30 06:03

I can\'t figure out why my RMySQL package won\'t install - here\'s what I get:

> install.packages(\'RMySQL\',type=\'source\')
trying URL \'http://cran.mir         


        
11条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 06:54

    I was having this same problem on Windows 7 with R 2.12.1 x64 and resolved it by:

    1. Changing the R directory in my PATH variable to C:\Program Files\R\R-2.12.1\bin\x64 (rather than just ...\R-2.12.1\bin).
    2. Copying ...\MySQL Server 5.5\lib\libmysql.dll to ...\MySQL Server 5.5\bin\.
    3. Running R CMD INSTALL RMySQL_0.7-5.tar.gz in cmd.exe (install.packages('RMySQL',type='source') in R still would not work).

提交回复
热议问题