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

Latest rustc stable (1.46.0) breaks because libz.so.1 is missing #240

Open
giacomocariello opened this issue Aug 27, 2020 · 4 comments
Open

Comments

@giacomocariello
Copy link

rustc 1.46.0 returns the following error upon execution:

rustc: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

As workaround, I pinned version 1.45.2, which works fine.

@OmnipotentEntity
Copy link

Another easy workaround is to add the following to your shell.nix:

shellHook = ''
  export LD_LIBRARY_PATH=${zlib.out}/lib''${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
'';

@peterbecich
Copy link

Should this be

shellHook = ''
  export LD_LIBRARY_PATH=${zlib.out}/lib:${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
'';

?

Thanks

@OmnipotentEntity
Copy link

Probably. No idea how that typo happened.

@Artturin
Copy link
Contributor

fixed in ab9b53e

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

4 participants