我发现很难在CENTOS上安装“RMySQL”软件包。
install.packages("RMySQL", dependencies = TRUE, repos = "http://cran.rstudio.com/")
它给我带来的错误是:
* installing *source* package ‘RMySQL’ ...
** package ‘RMySQL’ successfully unpacked and MD5 sums checked
Using PKG_CFLAGS=
Using PKG_LIBS=-lmysqlclient
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libmysqlclient was not found. Try installing:
* deb: libmariadb-client-lgpl-dev (Debian, Ubuntu 16.04)
libmariadbclient-dev (Ubuntu 14.04)
* rpm: mariadb-devel | mysql-devel (Fedora, CentOS, RHEL)
* csw: mysql56_dev (Solaris)
* brew: mariadb-connector-c (OSX)
If libmysqlclient is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libmysqlclient.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘RMySQL’
* removing ‘/usr/local/lib64/R/library/RMySQL’
The downloaded source packages are in
‘/tmp/RtmpbFMPmO/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("RMySQL", dependencies = TRUE, repos = "http://cran.rstudio.com/") :
installation of package ‘RMySQL’ had non-zero exit status
我已经安装了yum update mysql-devel
但仍然遇到同样的错误。
任何帮助将不胜感激,因为我一直试图找出他自过去2天以来。