How to Fix PKI package Installation Issues in R

How to Fix PKI package Installation Issues in R

I'm using RStudio server in Redhat linux. When I installed PKI package, I got error message like shown below. There is something wrong with my openssl library in OS.

It's very simple to fix this problem.
Just install the openssl library.
sudo yum install openssl-devel
Then everything is OK.


Error message:
> install.packages("PKI") SOMETHING...............................

In file included from init.c:1:pki.h:11:25: error: openssl/err.h: No such file or directory pki.h:12:25: error: openssl/evp.h: No such file or directory pki.h:13:25: error: openssl/rsa.h: No such file or directory pki.h:12:25: error: openssl/evp.h: No such file or directorypki.h:13:25: error: openssl/rsa.h: No such file or directorypki.h:14:25: error: openssl/sha.h: No such file or directory pki.h:15:25: error: openssl/md5.h: No such file or directorypki.h:16:26: error: openssl/x509.h: No such file or directorypki.h:17:25: error: openssl/ssl.h: No such file or directory init.c: In function ‘PKI_init’:init.c:7: warning: implicit declaration of function ‘SSL_library_init’init.c:8: warning: implicit declaration of function ‘SSL_load_error_strings’init.c:9: warning: implicit declaration of function ‘OpenSSL_add_all_algorithms’make: *** [init.o] Error 1ERROR: compilation failed for package ‘PKI’* removing ‘/home/xing/R/x86_64-redhat-linux-gnu-library/3.2/PKI’Warning in install.packages :
installation of package ‘PKI’ had non-zero exit status The downloaded source packages are in
‘/tmp/RtmpYzmufb/downloaded_packages’

Comments