nixpkgs-mozilla icon indicating copy to clipboard operation
nixpkgs-mozilla copied to clipboard

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

Open giacomocariello opened this issue 4 years ago • 4 comments

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.

giacomocariello avatar Aug 27 '20 20:08 giacomocariello

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}
'';

OmnipotentEntity avatar Aug 28 '20 02:08 OmnipotentEntity

Should this be

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

?

Thanks

peterbecich avatar Mar 26 '23 05:03 peterbecich

Probably. No idea how that typo happened.

OmnipotentEntity avatar Mar 27 '23 17:03 OmnipotentEntity

fixed in ab9b53eb

Artturin avatar Jul 28 '23 15:07 Artturin