美文网首页
install.packages('httr')

install.packages('httr')

作者: Seurat_Satija | 来源:发表于2021-08-24 14:46 被阅读0次
install.packages('httr')
Installing package into '/home/rstudio/R/x86_64-pc-linux-gnu-library/4.1'
(as 'lib' is unspecified)
also installing the dependencies 'curl', 'openssl'

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/curl_4.3.2.tar.gz'
Content type 'application/octet-stream' length 793345 bytes (774 KB)
==================================================
downloaded 774 KB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/openssl_1.4.4.tar.gz'
Content type 'application/octet-stream' length 1311285 bytes (1.3 MB)
==================================================
downloaded 1.3 MB

trying URL 'https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/contrib/httr_1.4.2.tar.gz'
Content type 'application/octet-stream' length 159950 bytes (156 KB)
==================================================
downloaded 156 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/rstudio/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
    1 | #include <openssl/opensslv.h>
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
--------------------------------------------------------------------
ERROR: configuration failed for package 'openssl'
* removing '/home/rstudio/R/x86_64-pc-linux-gnu-library/4.1/openssl'
Warning in install.packages :
  installation of package 'openssl' had non-zero exit status
ERROR: dependencies 'curl', 'openssl' are not available for package 'httr'
* removing '/home/rstudio/R/x86_64-pc-linux-gnu-library/4.1/httr'
Warning in install.packages :
  installation of package 'httr' had non-zero exit status

The downloaded source packages are in
    '/tmp/Rtmp1LVDH1/downloaded_packages'

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

rstudio@1102656:~$ cd /home/rstudio/R/x86_64-pc-linux-gnu-library/4.1
rstudio@1102656:~/R/x86_64-pc-linux-gnu-library/4.1$ ls
BH             caTools       fs            irlba        pillar         spatstat.data
FNN            cachem        future        isoband      pkgconfig      spatstat.geom
R6             cli           future.apply  jquerylib    plyr           spatstat.sparse
RANN           colorspace    generics      jsonlite     png            spatstat.utils
RColorBrewer   commonmark    ggplot2       labeling     polyclip       stringi
ROCR           cowplot       ggrepel       later        promises       stringr
RSpectra       cpp11         ggridges      lazyeval     purrr          sys
Rcpp           crayon        globals       leiden       rappdirs       tensor
RcppAnnoy      crosstalk     glue          lifecycle    reshape2       tibble
RcppArmadillo  data.table    goftest       listenv      reticulate     tidyr
RcppEigen      deldir        gplots        lmtest       rlang          tidyselect
RcppProgress   digest        gridExtra     magrittr     sass           utf8
Rtsne          dplyr         gtable        matrixStats  scales         uwot
SeuratObject   dqrng         gtools        mime         scattermore    vctrs
abind          ellipsis      htmltools     miniUI       sctransform    viridisLite
askpass        fansi         htmlwidgets   munsell      shiny          withr
base64enc      farver        httpuv        parallelly   sitmo          xtable
bitops         fastmap       ica           patchwork    sourcetools    yaml
bslib          fitdistrplus  igraph        pbapply      spatstat.core  zoo

相关文章

网友评论

      本文标题:install.packages('httr')

      本文链接:https://www.haomeiwen.com/subject/mlydiltx.html