Domanda

I am trying to install RMySQL package in R, by install.packages("RMySQL"), but it complains that it couldn't find the include libraries.

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.

So, then I installed mysql in Ubuntu as follows:

sudo apt-get install mysql-client

This installation worked fine, but still I get the same error in R. Can someone point me to the right direction please?

È stato utile?

Soluzione

I've checked this

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

so you should have r-cran-rmysql package inside your Ubuntu packages list. Therefore

  • from inside R remove DBI, RMySQL packages,
  • then sudo apt-get install r-cran-rmysql

HTH

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top