简体   繁体   English

库中的错误(tidyverse):没有名为'tidyverse'的包

[英]Error in library(tidyverse) : there is no package called ‘tidyverse’

I am trying to install tidyverse package in order to use gather function in my script. 我正在尝试安装tidyverse包,以便在我的脚本中使用收集功能。 I am getting the following message every time I try to install the package: 每次我尝试安装包时,我都会收到以下消息:

* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
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/nasser/R/x86_64-pc-linux-gnu-library/3.2/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 PKG_CFLAGS=
------------------------- ANTICONF ERROR ---------------------------
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: configuration failed for package ‘openssl’
* removing ‘/home/nasser/R/x86_64-pc-linux-gnu-library/3.2/openssl’
Warning in install.packages :
  installation of package ‘openssl’ had non-zero exit status
* installing *source* package ‘xml2’ ...
** package ‘xml2’ successfully unpacked and MD5 sums checked
Package libxml-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `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'
to the PKG_CONFIG_PATH environment variable
No package 'libxml-2.0' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lxml2
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libxml-2.0 was not found. Try installing:
 * deb: libxml2-dev (Debian, Ubuntu, etc)
 * rpm: libxml2-devel (Fedora, CentOS, RHEL)
 * csw: libxml2_dev (Solaris)
If libxml-2.0 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libxml-2.0.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 ‘xml2’
* removing ‘/home/nasser/R/x86_64-pc-linux-gnu-library/3.2/xml2’
Warning in install.packages :
  installation of package ‘xml2’ had non-zero exit status
ERROR: dependencies ‘curl’, ‘openssl’ are not available for package ‘httr’
* removing ‘/home/nasser/R/x86_64-pc-linux-gnu-library/3.2/httr’
Warning in install.packages :
  installation of package ‘httr’ had non-zero exit status
ERROR: dependencies ‘xml2’, ‘httr’ are not available for package ‘rvest’
* removing ‘/home/nasser/R/x86_64-pc-linux-gnu-library/3.2/rvest’
Warning in install.packages :
  installation of package ‘rvest’ had non-zero exit status
ERROR: dependencies ‘httr’, ‘rvest’, ‘xml2’ are not available for package ‘tidyverse’
* removing ‘/home/nasser/R/x86_64-pc-linux-gnu-library/3.2/tidyverse’
Warning in install.packages :
  installation of package ‘tidyverse’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpAkUxg4/downloaded_packages’

I have no idea what all that means and I could not solve it. 我不知道这意味着什么,我无法解决它。 Do you have any idea how to solve this? 你知道如何解决这个问题吗?

I'd put this in a comment as well but it doesn't work in that format. 我也把它放在评论中,但它不适用于那种格式。 I'm kinda hoping the actual comment has the solution so this question can be marked as a duplicate. 我有点希望实际评论有解决方案,所以这个问题可以标记为重复。

The output actually did give instructions, but it's all smushed together and somewhat foreboding (which is somewhat appropriate given the proximity to Halloween). 输出实际上确实给出了指示,但是它们都是一起刷的并且有点预感(鉴于接近万圣节,这有点合适)。

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=...'

says you need to know which linux distribution you have and install the libcurl OS package for it before trying to install the tidyverse. 说你需要知道你有哪个Linux发行版,并在尝试安装tidyverse之前为它安装libcurl OS软件包。

------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libxml-2.0 was not found. Try installing:
 * deb: libxml2-dev (Debian, Ubuntu, etc)
 * rpm: libxml2-devel (Fedora, CentOS, RHEL)
 * csw: libxml2_dev (Solaris)
If libxml-2.0 is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libxml-2.0.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=...'
--------------------------------------------------------------------

says you need to know which linux distribution you have and install the libxml2 OS package for it before trying to install the tidyverse. 说你需要知道你有哪个linux发行版,并在尝试安装tidyverse之前为它安装libxml2操作系统包。

While you're at it, make sure you have the openssl OS package installed as well. 在您使用它时,请确保您也安装了openssl OS软件包。

暂无
暂无

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

相关问题 尝试加载 tidyverse 但我遇到“> library(tidyverse) 库中的错误 (tidyverse):没有 package 称为 'tidyverse'” - tried to load tidyverse but I'm met with “> library(tidyverse) Error in library(tidyverse) : there is no package called ‘tidyverse’” 无法在 R 中安装 tidyverse 包。错误没有调用包 - Cannot install tidyverse package in R. Error there is no package called 错误:package 或“tidyverse”的命名空间加载失败,没有 package 称为“reprex” - Error: package or namespace load failed for ‘tidyverse’ there is no package called ‘reprex’ 错误:package 或“tidyverse”的命名空间加载失败,没有名为“rlang”的 package - Error: package or namespace load failed for “tidyverse” there is no package called “rlang” 加载 tidyverse 导致错误消息没有名为“readr”的包 - Loading tidyverse leads to error message there is no package called 'readr' 尝试使用 tidyverse 库时出错 - Error trying to use the tidyverse library 安装 tidyverse 包时出现问题“loadspacename 中的错误” - Problem installing tidyverse package "error in loadspacename" Tidyverse 和 dplyr- 错误 package 或命名空间 - Tidyverse and dplyr- error package or namespace 加载 tidyverse 时出错:package 或 namspace laod 失败 - Error with loading tidyverse: package or namspace laod failed R错误-无法从tidyverse加载包'colorspace' - R error - package 'colorspace' not loading from tidyverse
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM