简体   繁体   English

我无法在 rstudio 中安装 rvest package

[英]i am unable to install rvest package in rstudio

so i want to install rvest package in my rstudio but wasn't able to as it said to install some packages on my system first,i used this -->所以我想在我的 rstudio 中安装 rvest package 但不能像它所说的那样先在我的系统上安装一些软件包,我使用了这个 -->

sudo apt-get install libssl-dev

this got executed but after this also the error was -->这已执行,但在此之后也出现错误-->

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

and

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

so i tried installing then using -->所以我尝试安装然后使用 -->

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

but these are not working the error is -->但这些都不起作用错误是-->

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  libcurl4-doc libidn11-dev libkrb5-dev libldap2-dev librtmp-dev libssh2-1-dev libssl-dev
The following NEW packages will be installed:
  libcurl4-openssl-dev
0 upgraded, 1 newly installed, 0 to remove and 31 not upgraded.
Need to get 318 kB of archives.
After this operation, 1,508 kB of additional disk space will be used.
Ign:1 http://in.archive.ubuntu.com/ubuntu disco-updates/main amd64 libcurl4-openssl-dev amd64 7.64.0-2ubuntu1.2
Err:1 http://security.ubuntu.com/ubuntu disco-updates/main amd64 libcurl4-openssl-dev amd64 7.64.0-2ubuntu1.2
  404  Not Found [IP: 2403:8940:ffff::f 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl4-openssl-dev_7.64.0-2ubuntu1.2_amd64.deb  404  Not Found [IP: 2403:8940:ffff::f 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

then i tried using both of these too -->然后我也尝试使用这两种方法-->

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

how can this problem be solved?如何解决这个问题?

You simply have a networking problem.你只是有一个网络问题。 It failed to connect to security,ubuntu.com.它无法连接到安全,ubuntu.com。

Also not that a number of key packages are already in the distro so just do也不是很多关键包已经在发行版中,所以就这样做

sudo apt install r-cran-rvest

which works for me on 19.10 and may well too for you on 19.04 (which you should upgrade from).这在 19.10 对我有用,在 19.04 也可能对你有用(你应该从它升级)。

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

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