简体   繁体   English

R:安装包语言服务器具有非零退出状态

[英]R: install packages languageserver had non-zero exit status

Introduction介绍

OS: Ubuntu 20.04.3 LTS操作系统:Ubuntu 20.04.3 LTS

I am currently install the languageserver packages on R, to use the R VS Code extension.我目前正在 R 上安装语言服务器包,以使用 R VS 代码扩展。

Problematic有问题的

But when I execute the install.packages("languageserver") in R with the Ubuntu's terminal, I have this error:但是当我使用 Ubuntu 的终端执行 R 中的install.packages("languageserver")时,我遇到了这个错误:

> install.packages("languageserver")
Installing package into ‘/home/mathieu-s/R/x86_64-pc-linux-gnu-library/4.1’
(as ‘lib’ is unspecified)
also installing the dependencies ‘curl’, ‘httr’, ‘lintr’

trying URL 'https://cloud.r-project.org/src/contrib/curl_4.3.2.tar.gz'
Content type 'application/x-gzip' length 793345 bytes (774 KB)
==================================================
downloaded 774 KB

trying URL 'https://cloud.r-project.org/src/contrib/httr_1.4.2.tar.gz'
Content type 'application/x-gzip' length 159950 bytes (156 KB)
==================================================
downloaded 156 KB

trying URL 'https://cloud.r-project.org/src/contrib/lintr_2.0.1.tar.gz'
Content type 'application/x-gzip' length 219142 bytes (214 KB)
==================================================
downloaded 214 KB

trying URL 'https://cloud.r-project.org/src/contrib/languageserver_0.3.12.tar.gz'
Content type 'application/x-gzip' length 78124 bytes (76 KB)
==================================================
downloaded 76 KB

* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
 * deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
 * rpm: libcurl-devel (Fedora, CentOS, RHEL)
 * csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.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 ‘curl’
* removing ‘/home/mathieu-s/R/x86_64-pc-linux-gnu-library/4.1/curl’
ERROR: dependency ‘curl’ is not available for package ‘httr’
* removing ‘/home/mathieu-s/R/x86_64-pc-linux-gnu-library/4.1/httr’
ERROR: dependency ‘httr’ is not available for package ‘lintr’
* removing ‘/home/mathieu-s/R/x86_64-pc-linux-gnu-library/4.1/lintr’
ERROR: dependency ‘lintr’ is not available for package ‘languageserver’
* removing ‘/home/mathieu-s/R/x86_64-pc-linux-gnu-library/4.1/languageserver’

The downloaded source packages are in
    ‘/tmp/RtmpVaqLTX/downloaded_packages’
Warning messages:
1: In install.packages("languageserver") :
  installation of package ‘curl’ had non-zero exit status
2: In install.packages("languageserver") :
  installation of package ‘httr’ had non-zero exit status
3: In install.packages("languageserver") :
  installation of package ‘lintr’ had non-zero exit status
4: In install.packages("languageserver") :
  installation of package ‘languageserver’ had non-zero exit status

But I don't know how to solve this error, can someone help me to solve this?但是我不知道如何解决这个错误,有人可以帮我解决这个问题吗?

you should install libcurl4-openssl-dev in Ubuntu, try the following codes in Ubuntu terminal :您应该在 Ubuntu 中安装libcurl4-openssl-dev ,在 Ubuntu terminal中尝试以下代码:

sudo apt update
sudo apt-get install libcurl4-openssl-dev

then try again to install languageserver package in R然后再次尝试在 R 中安装languageserver服务器R

暂无
暂无

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

相关问题 安装包 'stringr' 和 'stringi' 的退出状态非零 - Installation of packages ‘stringr’ and ‘stringi’ had non-zero exit status install.packages 中的警告:安装包“tidyverse”的退出状态非零 - Warning in install.packages : installation of package ‘tidyverse’ had non-zero exit status install.packages 中的警告:package“igraph”的安装具有非零退出状态 - Warning in install.packages : installation of package ‘igraph’ had non-zero exit status 安装 terra、sf、raster 等空间包在数据块上具有非零退出状态 - Install spatial packages like terra, sf, raster had non-zero exit status on databricks 在Mac上的R或RStudio中安装“ MareyMap”软件包。 “安装软件包的退出状态为非零” - Install package “MareyMap” in R or RStudio on Mac. “Installation of package had non-zero exit status” 安装包“Rmpfr”在 R 中具有非零退出状态 - Installation of package ‘Rmpfr’ had non-zero exit status in R R中的“软件包tuneR的安装具有非零退出状态” - “installation of package tuneR had non-zero exit status” in R R devtools安装错误-软件包'curl'的安装具有非零退出状态 - R devtools install error - installation of package 'curl' had non-zero exit status 非零退出状态 tidyverse 安装包 Rstudio - Non-zero exit status tidyverse install packages Rstudio 无法安装.packages():系统调用失败:无法分配内存; 包的安装具有非零退出状态 - Unable to install.packages(): system call failed: Cannot allocate memory; installation of package had non-zero exit status
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM