R 卷曲包未安装

R 卷曲包未安装,r,curl,rstudio-server,R,Curl,Rstudio Server,安装curl包时 install.packages("curl") Installing package into ‘/home/mrshekar/R/x86_64-pc-linux-gnu-library/3.4’ (as ‘lib’ is unspecified) trying URL 'https://cloud.r-project.org/src/contrib/curl_3.2.tar.gz' Content type 'application/x-gzip' length 36704

安装curl包时

install.packages("curl")
Installing package into ‘/home/mrshekar/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/curl_3.2.tar.gz'
Content type 'application/x-gzip' length 367047 bytes (358 KB)
==================================================
downloaded 358 KB

* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
’
在此之后,我从安装了libcurl包。然后我还将整个packae文件夹复制到r的library文件夹中。安装curl包时,仍然会出现错误

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/mrshekar/R/x86_64-pc-linux-gnu-library/3.4/curl’
    Warning in install.packages :
      installation of package ‘curl’ had non-zero exit status

    The downloaded source packages are in
        ‘/tmp/RtmpmQeo3q/downloaded_packages
我错在哪里?不同的软件包,如shiny和ggplot,都是以相同的方式下载和加载的。有人能帮忙吗?
之所以会发生这种情况,是因为我必须最终安装quantmod软件包,但它提供了无法安装curl依赖项的信息

libcurl4 openssl dev不是一个R软件包,而是一个linux库

在控制台类型中:

sudo apt-get install libcurl4-openssl-dev
注意:您需要sudo权限

回答