R:安装RMySQL包失败了

时间:2014-04-24 23:37:56

标签: mysql r installation

我正在尝试通过RMySQL在R中安装install.packages("RMySQL")包,但它抱怨它无法找到包含库。

Configuration error:
 could not find the MySQL installation include and/or library
 directories.  Manually specify the location of the MySQL
 libraries and the header files and re-run R CMD INSTALL.

那么,我在Ubuntu中安装了mysql,如下所示:

sudo apt-get install mysql-client

这个安装工作​​正常,但我仍然在R中得到同样的错误。有人能指出我正确的方向吗?

1 个答案:

答案 0 :(得分:1)

我已经检查了这个

http://packages.ubuntu.com/search?keywords=r-cran-rmysql

所以你应该在你的Ubuntu软件包列表中有r-cran-rmysql个包。因此

  • R内删除DBIRMySQL个包,
  • 然后sudo apt-get install r-cran-rmysql

HTH