嗨,我是新来的,下载tidyverse软件包有点麻烦
下面是我正在使用的内容: R版本4.1.1 (2021-08-10) Linux系统,我似乎无法让它下载到我的桌面上,但能够在云版本的R上下载,我想我遗漏了一些东西,但我不知道它会是什么。我试过移除它,但还是什么也没有。如果有人能解释我做错了什么以及如何纠正它,那将是非常感谢的。提前感谢!用于下载R的命令:
echo "deb http://cloud.r-project.org/bin/linux/debian buster-cran40/" | sudo tee /etc/apt/sources.list.d/r.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FCAE2A0E115C3D8A
sudo apt update
sudo apt install r-base libnss3
get https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.4.1106-amd64.deb
sudo dpkg -i rstudio-1.4.1106-amd64.deb
sudo apt -f install这里是错误的最后一点
ERROR: configuration failed for package ‘curl’
* removing ‘/home/barobbie/R/x86_64-pc-linux-gnu-library/4.1/curl’
Warning in install.packages :
installation of package ‘curl’ had non-zero exit status
* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
** using staged installation
Using PKG_CFLAGS=
--------------------------- [ANTICONF] --------------------------------
Configuration failed because openssl was not found. Try installing:
* deb: libssl-dev (Debian, Ubuntu, etc)
* rpm: openssl-devel (Fedora, CentOS, RHEL)
* csw: libssl_dev (Solaris)
* brew: openssl@1.1 (Mac OSX)
If openssl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a openssl.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 MESSAGE] ---------------------------
tools/version.c:1:10: fatal error: openssl/opensslv.h: No such file or directory
#include <openssl/opensslv.h>
^~~~~~~~~~~~~~~~~~~~
compilation terminated.
---------------------------------------------------------------
ERROR: configuration failed for package ‘openssl’
* removing ‘/home/barobbie/R/x86_64-pc-linux-gnu-库/4.1/openssl在install.packages中的警告:安装“openssl”包的非零退出状态
在pkg-config搜索路径中找不到
libxml-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'libxml-2.0' found Package libxml-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing libxml-2.0.pc‘的目录添加到PKG_CONFIG_PATH环境变量No package ' libxml-2.0’中,使用PKG_LIBS=-lxml2 -因为没有找到libxml-2.0,所以配置失败。尝试installing:错误:包“xml2”配置失败
在‘/home/barobbie/R/x86_64-pc-linux-gnu-library/4.1/xml2’中删除警告:安装包‘xml2’有非零退出状态错误:依赖项‘openssl’不可用于install.packages中的包‘ids’
。
下载的源代码包位于‘/tmp/rtmp4NJJ8T/ downloaded _ packages’中。
发布于 2021-09-02 14:46:48
我发现我错过了什么。通常情况下,这些错误会提示您修复这个问题所需的内容,因此我在我的终端中更正了丢失的问题,如下所示。
sudo apt install libcurl4-openssl-dev
sudo apt install libssl-dev
sudo apt install libxml2-dev然后在R中
install.packages ("tidyverse")这使我可以在Linux系统中在R上安装整洁的诗句
https://stackoverflow.com/questions/69019877
复制相似问题