Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix cannot be install without libcrypto.so.1.1 in the environment #18

Open
ShamrockLee opened this issue Sep 16, 2020 · 6 comments
Open

Comments

@ShamrockLee
Copy link

During the installation of nix, it complains:

/nix/store/4vz8sh9ngx34ivi0bw5hlycxdhvy5hvz-nix-2.3.7/bin/nix-store: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

There are some other libcrypto.so in /usr/lib, but none of them end with .1.1

$ ls /usr/lib/libcrypto.so
libcrypto.so         libcrypto.so.1.0.2k
libcrypto.so.0.9.8e  libcrypto.so.6
libcrypto.so.10

Since I don't have the root privilige in that environment, is there some other way to install?

@zimbatm
Copy link
Member

zimbatm commented Sep 17, 2020

What Linux distribution should be used to reproduce the problem?

Normally Nix should come with its own version of libcrypto.

@ShamrockLee
Copy link
Author

ShamrockLee commented Sep 18, 2020

It's CentOS 7.8.2003.

@Mic92
Copy link
Member

Mic92 commented Sep 19, 2020

Do you have libcrypto in the find /nix/store | grep libcrypto?
I don't see openssl directly in the rpath of nix-store:

patchelf --print-rpath $(which nix-store)
/nix/store/cc30c7sap0nlxgh18rwy78m9kwjdxdcr-nix-3.0pre20200829_f156513/lib:/nix/store/6p3zjf89q9p5yjr32dvjnfpr7rnvac83-libsodium-1.0.18/lib:/nix/store/hj11p6ayc6vllvxh5mwpxfkjwzmcz4rf-editline-1.17.0/lib:/nix/store/m38r4asgn7mjbrvzsn0nxaisdccvlgcw-boehm-gc-8.0.4/lib:/nix/store/2gci5q5yz717xycp444wyjxki4mbwwav-zlib-1.2.11/lib:/nix/store/jvjchabdmcxlwjhbiii5sy6d2hcg6z7r-glibc-2.31/lib:/nix/store/mijx85pw9jn3bhzii3jl0kv5m2sjq7zq-gcc-9.3.0-lib/lib

It is a dependency of libnixmain.so on my system:

nix-shell -p pax-utils --run 'lddtree $(which nix-store)'
...
    libnixmain.so => /nix/store/cc30c7sap0nlxgh18rwy78m9kwjdxdcr-nix-3.0pre20200829_f156513/lib/libnixmain.so
        libcrypto.so.1.1 => /nix/store/zcrf6m8p9di31vrj6qqzskdg9gx2sn5n-openssl-1.1.1g/lib/libcrypto.so.1.
...

Anyway, I suggest you to open an issue in nix itself as well. This might be a packaging bug.

@ShamrockLee
Copy link
Author

ShamrockLee commented Sep 19, 2020

$ find .nix | grep libcrypto
.nix/store/0x3bf23q5lmdq77x5icr7c0ngvz25ms3-openssl-1.1.1g/lib/libcrypto.so

@ShamrockLee
Copy link
Author

I have just started a virtual machine with the live image of CentOS (KDE), but cannot reproduce the issue. The installation went successful.

@ShamrockLee
Copy link
Author

Yet another clue: issue #17 "invalid cross-device link" happen on the machine, so I wrote sandbox = false in .nix/etc/nix/nix.conf
But I still cannot reproduce the issue on QEMU and CentOS live image with the above configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants