0

I installed nixos recently and am still not familiar with it. I am struggling to install the R package openssl.

After I enter the following command

nix-shell -p R pkgconfig openssl
nix-shell -p gpp pkgconfig openssl
R
install.packages("openssl")

I get the following error

Installing package into ‘/home/jez/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://cloud.r-project.org/src/contrib/openssl_1.4.1.tar.gz'
Content type 'application/x-gzip' length 1206885 bytes (1.2 MB)
==================================================
downloaded 1.2 MB

* installing *source* package ‘openssl’ ...
** package ‘openssl’ successfully unpacked and MD5 sums checked
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include
Using PKG_LIBS=-L/nix/store/scba1dgd645xm6fhxqw68dkbi0akcd86-openssl-1.1.1d/lib -l:libssl.so.1.1 -l:libcrypto.so.1.1
** libs
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
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c aes.c -o aes.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c base64.c -o base64.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c bignum.c -o bignum.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c cert.c -o cert.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c compatibility.c -o compatibility.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c diffie.c -o diffie.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c envelope.c -o envelope.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c error.c -o error.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c hash.c -o hash.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c info.c -o info.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c keygen.c -o keygen.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c keys.c -o keys.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c onload.c -o onload.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c openssh.c -o openssh.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c password.c -o password.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c pbkdf.c -o pbkdf.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c pem.c -o pem.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c pkcs12.c -o pkcs12.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c pkcs7.c -o pkcs7.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c rand.c -o rand.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c rsa.c -o rsa.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c signing.c -o signing.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c ssl.c -o ssl.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c stream.c -o stream.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c write.c -o write.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c x25519.c -o x25519.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c bcrypt/bcrypt_pbkdf.c -o bcrypt/bcrypt_pbkdf.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -I"/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/include" -DNDEBUG -I/nix/store/f4qvdagn6g7wdmr65wc0s3a2jdfmr7r7-openssl-1.1.1d-dev/include    -fpic  -g -O2  -c bcrypt/blowfish.c -o bcrypt/blowfish.o
/nix/store/q354712mnkw3ky8b5crj7ir7dyv29ylj-binutils-2.31.1/bin/ar rcs bcrypt/libstatbcrypt.a bcrypt/bcrypt_pbkdf.o bcrypt/blowfish.o
/nix/store/5w1sbkk3kwahwm25dhgnyd4w6kg4znmf-gcc-wrapper-8.3.0/bin/cc -shared -L/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/lib -o openssl.so 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 -Lbcrypt -lstatbcrypt -L/nix/store/scba1dgd645xm6fhxqw68dkbi0akcd86-openssl-1.1.1d/lib -l:libssl.so.1.1 -l:libcrypto.so.1.1 -L/nix/store/zizxyj5pnd8gfvbs8lb08l62x1rn4bqv-R-3.6.1/lib/R/lib -lR
installing to /home/jez/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-openssl/00new/openssl/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘openssl’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/home/jez/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-openssl/00new/openssl/libs/openssl.so':
  libssl.so.1.1: cannot open shared object file: No such file or directory
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/home/jez/R/x86_64-pc-linux-gnu-library/3.6/openssl’

The downloaded source packages are in
        ‘/run/user/1000/Rtmpr1iTrY/downloaded_packages’
Warning message:
In install.packages("openssl") :
  installation of package ‘openssl’ had non-zero exit status

I am unsure how to fix this?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.