r - Trouble installing packages in RStudio on Linux -


i'm trying install following package in rstudio on linux. i'm getting follow error code. don't understand it. wondering if me make sense of it.

thanks, nick

> install.packages("pki") installing package ‘/home/nick/r/x86_64-pc-linux-gnu-library/3.4’ (as ‘lib’ unspecified) trying url 'https://cran.rstudio.com/src/contrib/pki_0.1-3.tar.gz' content type 'application/x-gzip' length 31058 bytes (30 kb) ================================================== downloaded 30 kb  * installing *source* package ‘pki’ ... ** package ‘pki’ unpacked , md5 sums checked ** libs gcc -i/usr/include/r/ -dndebug   -d_fortify_source=2   -fpic  -march=x86-64 -mtune=generic -o2 -pipe -fstack-protector-strong  -c asn1.c -o asn1.o gcc -i/usr/include/r/ -dndebug   -d_fortify_source=2   -fpic  -march=x86-64 -mtune=generic -o2 -pipe -fstack-protector-strong  -c init.c -o init.o gcc -i/usr/include/r/ -dndebug   -d_fortify_source=2   -fpic  -march=x86-64 -mtune=generic -o2 -pipe -fstack-protector-strong  -c pki-x509.c -o pki-x509.o pki-x509.c: in function ‘pki_extract_key’: pki-x509.c:136:26: error: dereferencing pointer incomplete type ‘evp_pkey {aka struct evp_pkey_st}’      if (evp_pkey_type(key->type) != evp_pkey_rsa)                           ^~ pki-x509.c: in function ‘get_cipher’: pki-x509.c:244:40: error: dereferencing pointer incomplete type ‘evp_cipher_ctx {aka struct evp_cipher_ctx_st}’   ctx = (evp_cipher_ctx*) malloc(sizeof(*ctx));                                         ^~~~ pki-x509.c: in function ‘pki_rsakeygen’: pki-x509.c:550:5: warning: ‘rsa_generate_key’ deprecated [-wdeprecated-declarations]      rsa = rsa_generate_key(bits, 65537, 0, 0);      ^~~ in file included /usr/include/openssl/rsa.h:13:0,                  pki.h:13,                  pki-x509.c:1: /usr/include/openssl/rsa.h:193:1: note: declared here  deprecatedin_0_9_8(rsa *rsa_generate_key(int bits, unsigned long e, void  ^ make: *** [/usr/lib64/r/etc/makeconf:159: pki-x509.o] error 1 error: compilation failed package ‘pki’ * removing ‘/home/nick/r/x86_64-pc-linux-gnu-library/3.4/pki’ warning in install.packages :   installation of package ‘pki’ had non-zero exit status  downloaded source packages in     ‘/tmp/rtmpttdg6c/downloaded_packages’ 

i think had same problem recently.

i installed package downloading recent tarball (the .tar.gz file pki_0.1-5.tar.gz) pki rforge page , running

install.packages(<tarball_path>, repos = null, type = "source").

edit: actually, it's easier run install.packages('pki',,'http://www.rforge.net/') written in small print @ bottom of pki rforge page

edit2: looking @ news, looks version 0.1-4 (perhaps more stable) fixes problem and, enough, works on system, while 0.1-3 doesn't (the 1 on cran currently).


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -