简体   繁体   English

R软件包未安装在Rstudio服务器上

[英]R packages not installing on Rstudio server

I installed RStudio Server on my Ubuntu 17.1 server. 我在Ubuntu 17.1服务器上安装了RStudio服务器。 But none of my packages are not installing: eg. 但是我的软件包都没有安装: When I am trying to install RMySQL package, I get the following error: 当我尝试安装RMySQL软件包时,出现以下错误:

trying URL 'https://cran.rstudio.com/src/contrib/RMySQL_0.10.14.tar.gz'
Content type 'application/x-gzip' length 52703 bytes (51 KB)
==================================================
downloaded 51 KB

* installing *source* package ‘RMySQL’ ...
** package ‘RMySQL’ successfully unpacked and MD5 sums checked
Found mysql_config cflags and libs!
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
/usr/lib/R/bin/config: 1: eval: make: not found
Using PKG_CFLAGS=-I/usr/include/mariadb -I/usr/include/mariadb/mysql -g -O2 -fdebug-prefix-map=/build/mariadb-connector-c-ts5uYh/mariadb-connector-c-2.3.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wunused -Wno-uninitialized
Using PKG_LIBS=-L/usr/lib/x86_64-linux-gnu -lmariadb
/usr/lib/R/bin/config: 1: eval: make: not found
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because no mysql client library was found. 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: configuration failed for package ‘RMySQL’
* removing ‘/home/qambrineh/R/x86_64-pc-linux-gnu-library/3.4/RMySQL’
Warning in install.packages :
  installation of package ‘RMySQL’ had non-zero exit status

As per the suggestions, I tried the following on my console: 根据建议,我在控制台上尝试了以下操作:

sudo apt-get install libmysqlclient-dev

and

sudo apt-get install libmariadbclient-dev

but I still get the same error. 但我仍然遇到相同的错误。 please help 请帮忙

The error message indicates that make is not installed. 错误消息表明未安装make This indicates that the make utility is not available on your system. 这表明make实用程序在您的系统上不可用。

In order for R to install packages, one must install the base-r-dev package in Ubuntu. 为了让R安装软件包,必须在Ubuntu中安装base-r-dev软件包。 r-base-dev includes a number of packages, including one called build-essential that covers the gcc compiler and make . r-base-dev包含许多软件包,其中包括一个称为build-essential的软件包,它涵盖gcc编译器和make

To install r-base-dev , issue the following command in a linux terminal window, assuming that you have already installed r-base . 要安装r-base-dev ,假设您已经安装了r-base ,请在linux终端窗口中发出以下命令。

sudo apt-get update
sudo apt-get install r-base-dev 

Note that there may be other errors in your installation, but this one needs to be corrected before debugging any other other error messages. 请注意,您的安装中可能还存在其他错误,但是在调试任何其他错误消息之前,需要更正此错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM