installing RMySQL gives error RS-MySQL.h:32:19: fatal error: mysql.h: No such file

前端 未结 4 1054
说谎
说谎 2021-01-06 19:04

I tried to install the RMySQL-library (R version 2.14.2, WinXP on 32bit) but got the following error message:

install.packages(\"D:/R/library/RMySQL_0.9-3.ta         


        
4条回答
  •  清酒与你
    2021-01-06 19:28

    I had this same issue. What I found out was that installer was placing temp files in my default working directory which I had edited in the Rprofile.site file. When it tried to subsequently use these files (including mysql.h) it could not find them. When I restored the Rprofile.site file to default, everything worked nicely. Hopefully this helps if nothing else did.

提交回复
热议问题