Error installing RMySQL Package


I'm trying to install package RMySQL and got following error messages.

Configure could not find suitable mysql/mariadb client library. Try installing:

  • deb: libmariadbclient-dev | libmariadb-client-lgpl-dev (Debian, Ubuntu)
  • rpm: mariadb-connector-c-devel | mariadb-devel | mysql-devel (Fedora, CentOS, RHEL)
  • csw: mysql56_dev (Solaris)
  • brew: mariadb-connector-c (OSX)
    If you already have a mysql client library installed, verify that either
    mariadb_config or mysql_config is on your PATH. If these are unavailable
    you can also set INCLUDE_DIR and LIB_DIR manually via:
    R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
    --------------------------[ ERROR MESSAGE ]----------------------------
    :1:10: fatal error: mysql.h: No such file or directory
    compilation terminated.

Could anyone help me on that?

Thanks in advance


Hi All,

I've already solved the issue with following commands

sudo apt-get update
sudo apt-get install libmysqlclient-dev



This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.