Skip to content

OpenSSL issues with installation #360

@smoorsh

Description

@smoorsh

Hello! I have been trying to install Tidyverse and have been running into issues with OpenSSL when installing. At first, I tried using the methods suggested in your README.md:

install.packages("pak")
pak::pak("tidyverse")

I was able to install pak, but when I tried to install Tidyverse I got the following OpenSSL error that caused the installation to fail:

✖ Failed to build openssl 2.3.3 (4s)                 
Error:                                               
! error in pak subprocess
Caused by error in `stop_task_build(state, worker)`:
! Failed to build source package openssl.
Full installation output:
* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
staged installation is only possible with locking
** using non-staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-DOPENSSL_LOAD_CONF 
Using PKG_LIBS=-L/usr//lib64 -l:libssl.so.1.0.0 -l:libcrypto.so.1.0.0 
** libs
using C compiler: ‘gcc (GCC) 11.2.0’
rm -f aes.o base64.o bignum.o cert.o compatibility.o diffie.o envelope.o error.o hash.o info.o keygen.o keys.o onload.o openssh.o password.o pbkdf.o pem.o pkcs12.o pkcs7.o rand.o rsa.o signing.o ssl.o stream.o write.o x25519.o openssl.so bcrypt/libstatbcrypt.a bcrypt/bcrypt_pbkdf.o bcrypt/blowfish.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -Wall -pedantic -fdiagnostics-color=always -c aes.c -o aes.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -Wall -pedantic -fdiagnostics-color=always -c base64.c -o base64.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -Wall -pedantic -fdiagnostics-color=always -c bignum.c -o bignum.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -Wall -pedantic -fdiagnostics-color=always -c cert.c -o cert.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -Wall -pedantic -fdiagnostics-color=always -c compatibility.c -o compatibility.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -Wall -pedantic -fdiagnostics-color=always -c diffie.c -o diffie.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -Wall -pedantic -fdiagnostics-color=always -c envelope.c -o envelope.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -Wall -pedantic -fdiagnostics-color=always -c error.c -o error.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -Wall -pedantic -fdiagnostics-color=always -c hash.c -o hash.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -Wall -pedantic -fdiagnostics-color=always -c info.c -o info.o
info.c: In function ‘R_openssl_config’:
info.c:28:38: warning: implicit declaration of function ‘OpenSSL_version’ [-Wimplicit-function-declaration]
   28 |   SET_VECTOR_ELT(res, 0, Rf_mkString(OpenSSL_version(OPENSSL_VERSION)));
      |                                      ^~~~~~~~~~~~~~~
info.c:28:54: error: ‘OPENSSL_VERSION’ undeclared (first use in this function); did you mean ‘OPENSSL_STRIN’?
   28 |   SET_VECTOR_ELT(res, 0, Rf_mkString(OpenSSL_version(OPENSSL_VERSION)));
      |                                                      ^~~~~~~~~~~~~~~
      |                                                      OPENSSL_STRING
info.c:28:54: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/apps/R/R-4.3.2/lib64/R/etc/Makeconf:191: recipe for target 'info.o' failed
make: *** [info.o] Error 1
ERROR: compilation failed for package ‘openssl’
* removing ‘/tmp/RtmpYPBMYP/pkg-lib8f80200bf251/openssl’
Type .Last.error to see the more details.

Then, I tried this:

install.packages("tidyverse")

And I got the same error as above twice before getting this:

* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-DOPENSSL_LOAD_CONF 
Using PKG_LIBS=-L/usr//lib64 -l:libssl.so.1.0.0 -l:libcrypto.so.1.0.0 
** libs
using C compiler: ‘gcc (GCC) 11.2.0’
rm -f aes.o base64.o bignum.o cert.o compatibility.o diffie.o envelope.o error.o hash.o info.o keygen.o keys.o onload.o openssh.o password.o pbkdf.o pem.o pkcs12.o pkcs7.o rand.o rsa.o signing.o ssl.o stream.o write.o x25519.o openssl.so bcrypt/libstatbcrypt.a bcrypt/bcrypt_pbkdf.o bcrypt/blowfish.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -c aes.c -o aes.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -c base64.c -o base64.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -c bignum.c -o bignum.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -c cert.c -o cert.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -c compatibility.c -o compatibility.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -c diffie.c -o diffie.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -c envelope.c -o envelope.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -c error.c -o error.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -c hash.c -o hash.o
gcc -I"/usr/local/apps/R/R-4.3.2/lib64/R/include" -DNDEBUG -DOPENSSL_LOAD_CONF  -DSTRICT_R_HEADERS -DR_NO_REMAP  -I/usr/local/include    -fpic  -g -O2  -c info.c -o info.o
info.c: In function ‘R_openssl_config’:
info.c:28:38: warning: implicit declaration of function ‘OpenSSL_version’ [-Wimplicit-function-declaration]
   28 |   SET_VECTOR_ELT(res, 0, Rf_mkString(OpenSSL_version(OPENSSL_VERSION)));
      |                                      ^~~~~~~~~~~~~~~
info.c:28:54: error: ‘OPENSSL_VERSION’ undeclared (first use in this function); did you mean ‘OPENSSL_STRIN’?
   28 |   SET_VECTOR_ELT(res, 0, Rf_mkString(OpenSSL_version(OPENSSL_VERSION)));
      |                                                      ^~~~~~~~~~~~~~~
      |                                                      OPENSSL_STRING
info.c:28:54: note: each undeclared identifier is reported only once for each function it appears in
/usr/local/apps/R/R-4.3.2/lib64/R/etc/Makeconf:191: recipe for target 'info.o' failed
make: *** [info.o] Error 1
ERROR: compilation failed for package ‘openssl’
* removing ‘/ddnlus/r3738/R/x86_64-pc-linux-gnu-library/4.3/openssl’

And at the end of this installation attempt, I got this:

ERROR: dependencies ‘googledrive’, ‘googlesheets4’, ‘httr’, ‘rvest’, ‘xml2’ are not available for package ‘tidyverse’
* removing ‘/ddnlus/r3738/R/x86_64-pc-linux-gnu-library/4.3/tidyverse’

The downloaded source packages are in
	‘/tmp/RtmpvWxV1d/downloaded_packages’
Warning messages:
1: In install.packages("tidyverse") :
  installation of package ‘openssl’ had non-zero exit status
2: In install.packages("tidyverse") :
  installation of package ‘xml2’ had non-zero exit status
3: In install.packages("tidyverse") :
  installation of package ‘ids’ had non-zero exit status
4: In install.packages("tidyverse") :
  installation of package ‘httr’ had non-zero exit status
5: In install.packages("tidyverse") :
  installation of package ‘gargle’ had non-zero exit status
6: In install.packages("tidyverse") :
  installation of package ‘googledrive’ had non-zero exit status
7: In install.packages("tidyverse") :
  installation of package ‘rvest’ had non-zero exit status
8: In install.packages("tidyverse") :
  installation of package ‘googlesheets4’ had non-zero exit status
9: In install.packages("tidyverse") :
  installation of package ‘tidyverse’ had non-zero exit status

I tried downloading OpenSSL itself, but the version specified by the Tidyverse error message, 2.3.3, is not available for download. I have instead downloaded OpenSSL version 3.5.1, which might work but I am unsure how to make the Tidyverse installation use my downloaded version instead of the package it is trying to install. Is there something I am missing, or a way to bypass the version problem? Thank you in advance for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions