2015-07-11 161 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 
相关问题