2015-07-11 194 views
3

我在Kubuntu14.04上安裝了新版本的RStudio(即0.99最新版本)。 當試圖上傳一個閃亮的程序,我得到一個消息,該消息稱「必須安裝RCurl和其他幾個包」 - 此安裝失敗,出現以下:安裝錯誤R和RStudio RCurl,PKI和其他軟件包

安裝包到

* 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編譯器消息都包含數十個鏈接)所以還有更多的消息,但是我希望這些消息足以識別治療方法。

感謝:

回答

2

sudo apt-get install libcurl4-openssl-dev 

讓你得到curl-config。與此同時,我的系統也愉快地安裝PKI

編輯:

[email protected]:~$ 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’ 
[email protected]:~$ 
6

你可以嘗試安裝的libssl-dev的該包中包含的OpenSSL/err.h文件。

sudo apt-get install libssl-dev 
相關問題