RMySQL Error

June 08, 2015 in #r #mysql #ubuntu

What to do if you receive the error: could not find the MySQL installation include and/or Library directories when installing RMySQL

If you receive the following error when installing 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.  

Open the terminal and install the development libraries for MySQL:

sudo apt-get install libdbd-mysql libmysqlclient-dev libmysqlclient18