【问题标题】:Error when installing swirl in RStudio 3.1.2在 RStudio 3.1.2 中安装漩涡时出错
【发布时间】:2016-02-08 02:48:46
【问题描述】:

嘿,我尝试运行以下命令安装 swirl:

install.packages("swirl")

我收到以下错误:

    ------------------------- 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/franco/R/x86_64-pc-linux-gnu-library/3.1/curl’
Warning in install.packages :
  installation of package ‘curl’ had non-zero exit status
* installing *source* package ‘RCurl’ ...
** package ‘RCurl’ successfully unpacked and MD5 sums checked
checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/home/franco/R/x86_64-pc-linux-gnu-library/3.1/RCurl’
Warning in install.packages :
  installation of package ‘RCurl’ had non-zero exit status
ERROR: dependency ‘curl’ is not available for package ‘httr’
* removing ‘/home/franco/R/x86_64-pc-linux-gnu-library/3.1/httr’
Warning in install.packages :
  installation of package ‘httr’ had non-zero exit status
ERROR: dependencies ‘httr’, ‘RCurl’ are not available for package       ‘swirl’
* removing ‘/home/franco/R/x86_64-pc-linux-gnu-library/3.1/swirl’
Warning in install.packages :
  installation of package ‘swirl’ had non-zero exit status

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

我尝试安装“curl”和“RCurl”软件包,但收到相同的错误消息。我不知道如何按照 ANTICONF ERROR 中的指示更改路径。

我正在运行 Ubuntu 15.04 和 R 版本 3.1.2 (2014-10-31)

【问题讨论】:

标签: r package


【解决方案1】:

现在是

sudo apt-get install libcurl4-gnutls-dev

【讨论】:

    【解决方案2】:

    于 2019 年 5 月 30 日更新: 我正在使用 Ubuntu 16.04

    我在安装软件包时得到了这个- 使用 PKG_CFLAGS=

    -------------- ANTICONF ERROR -------------------- --------

    配置失败,因为未找到 openssl。尝试安装:* deb: libssl-dev (Debian, Ubuntu, etc) * rpm: openssl-devel (Fedora, CentOS, RHEL) * csw: libssl_dev (Solaris) * brew: openssl@1.1 (Mac OSX)如果已经安装了 openssl,请检查 'pkg-config' 是否在 您的 PATH 和 PKG_CONFIG_PATH 包含一个 openssl.pc 文件。如果 pkg-config 不可用,您可以手动设置 INCLUDE_DIR 和 LIB_DIR 通过:R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'


    我在终端中使用了命令>

    sudo apt-get install libssl-dev
    

    然后它运行良好。

    【讨论】:

      猜你喜欢
      • 2017-10-12
      • 2020-08-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-18
      • 2018-03-02
      相关资源
      最近更新 更多