“installation of package 'FILE_PATH' had non-zero exit status” in R

前端 未结 9 670
感情败类
感情败类 2020-12-01 09:31

By installing the package in R using the following command:

install.packages(\'FILE_PATH\', repos=NULL, type = \"source\")

I got the follow

9条回答
  •  广开言路
    2020-12-01 10:19

    I have had the same problem with a specific package in R and the solution was I should install in the ubuntu terminal libcurl. Look at the information that appears above explaining to us that curl package has error installation.

    I knew this about the message:

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

    To install it I used the net command:

    sudo apt-get install libcurl4-openssl-dev

    Sometimes we can not install a specific package in R because we have problems with packages that must be installed previously as curl package. To know if we should install it we should check the warning errors such as: installation of package ‘curl’ had non-zero exit status.

    I hope I have been helpful

提交回复
热议问题