【问题标题】:Installation error R and RStudio RCurl , PKI and other packages安装错误 R 和 RStudio RCurl , PKI 等包
【发布时间】:2015-07-11 18:04:06
【问题描述】:

我在 Kubuntu14.04 上安装了新版本的 RStudio(即 0.99 最新版本)。 尝试上传闪亮的应用程序时,我收到一条消息,上面写着“必须安装 RCurl 和其他几个软件包” - 此安装失败并显示以下内容:

安装包到

* 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 ‘RCurl’
* installing *source* package ‘packrat’ ...
** package ‘packrat’ successfully unpacked and MD5 sums checked

* installing *source* package ‘PKI’ ...
** package ‘PKI’ successfully unpacked and MD5 sums checked
** libs

In file included from init.c:1:0:
pki.h:11:25: fatal error:   err.h: No such file or directory
                          ^
compilation terminated.
make: *** [init.o] Error 1
ERROR: compilation failed for package ‘PKI’

这是例行安装,我重新启动以重新启动,但出现相同的错误。 NB Stack-Overflow 不允许我发布超过 2 个链接(并且所有 R 编译器消息都包含数十个链接)所以有更多消息,但我希望这些足以确定治愈方法。

谢谢:

【问题讨论】:

    标签: rstudio rcpp rcurl


    【解决方案1】:

    您可以尝试安装 libssl-dev 包中包含 openssl/err.h 文件。

    sudo apt-get install libssl-dev
    

    【讨论】:

      【解决方案2】:

      sudo apt-get install libcurl4-openssl-dev
      

      这样您就可以得到curl-config。这样我的系统也很高兴地安装了PKI

      编辑:

      edd@max:~$ install.r PKI                           ## install.r is from littler
      trying URL 'http://cran.rstudio.com/src/contrib/PKI_0.1-1.tar.gz'
      Content type 'application/x-gzip' length 20334 bytes (19 KB)
      ==================================================
      downloaded 19 KB
      
      * installing *source* package ‘PKI’ ...
      ** package ‘PKI’ successfully unpacked and MD5 sums checked
      ** libs                                           ## I use ccache; rest standard
      ccache gcc -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -pedantic -std=gnu99 -c asn1.c -o asn1.o
      ccache gcc -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -pedantic -std=gnu99 -c init.c -o init.o
      ccache gcc -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -pedantic -std=gnu99 -c pki-x509.c -o pki-x509.o
      ccache gcc -I/usr/share/R/include -DNDEBUG      -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -O3 -Wall -pipe -pedantic -std=gnu99 -c tools.c -o tools.o
      ccache gcc -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o PKI.so asn1.o init.o pki-x509.o tools.o -lssl -L/usr/lib/R/lib -lR
      installing to /usr/local/lib/R/site-library/PKI/libs
      ** R
      ** inst
      ** preparing package for lazy loading
      ** help
      *** installing help indices
      ** building package indices
      ** testing if installed package can be loaded
      * DONE (PKI)
      
      The downloaded source packages are in
              ‘/tmp/downloaded_packages’
      edd@max:~$ 
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2014-10-30
        • 2019-01-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多