簡體   English   中英

在RStudio 3.1.2中安裝漩渦時出錯

[英]Error when installing swirl in RStudio 3.1.2

嘿,我嘗試運行以下命令來安裝漩渦:

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錯誤中的指示更改路徑。

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

現在是

sudo apt-get install libcurl4-gnutls-dev

於30-05-2019更新:我正在使用Ubuntu 16.04

我在安裝軟件包時得到了此信息-使用PKG_CFLAGS =

------------------------- ANTICONF錯誤----------------------- ----

配置失敗,因為找不到openssl。 嘗試安裝:* deb:libssl-dev(Debian,Ubuntu等)* rpm:openssl-devel(Fedora,CentOS,RHEL)* csw:libssl_dev(Solaris)* brew:openssl@1.1(Mac OSX)如果openssl已經存在安裝后,檢查PATH中是否有“ pkg-config”,並且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

然后工作正常。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM