Error installing R and RStudio RCurl, PKI and other packages
On Kubuntu14.04 I have installed a new version of RStudio (i.e. the latest version in 0.99 format). When I try to download a brilliant application, I get a message that says "RCurl and a couple of other packages need to be installed." This setup does not work with the following:
Installing packages in
* 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’
It was a normal install, I rebooted to get a clean start, but the same errors still occur. NB Stack-Overflow does not allow me to post more than two links (and all the R compiler posts contain dozens of links). So there are more reports, but hopefully there will be enough to identify a cure.
Thank:
source to share
Do
sudo apt-get install libcurl4-openssl-dev
to receive curl-config
. That being said, my system will happily install PKI
.
Edit:
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:~$
source to share