linux下R安装RMySQL不成功 configuration failed for package ‘RMySQL’
#install.packages('RMySQL')
报错:
将程序包安装入‘/home/app_user_5i5j/R/x86_64-pc-linux-gnu-library/3.4’
(因为‘lib’没有被指定)
试开URL’https://mirror.lzu.edu.cn/CRAN/src/contrib/RMySQL_0.10.13.tar.gz’
downloaded 52 KB
ERROR: configuration failed for package ‘RMySQL’
* removing ‘/home/app_user_5i5j/R/x86_64-pc-linux-gnu-library/3.4/RMySQL’
下载的程序包在
‘/tmp/RtmpZFkXgl/downloaded_packages’里
Warning message:
In install.packages(“RMySQL”) : 安装程序包‘RMySQL’时退出狀態的值不是0
解决方式:
linux CentOS解决方式
报错上面提示:没有发现依赖包需要安装
环境下安装rpm: mariadb-devel | mysql-devel
# sudo yum install mariadb-devel
# sudo yum install mysql-devel
然后运行install.packages(‘RMySQL’)安装成功