Help installing Ruby gem "nokogiri"

Libraries installed either as systemPackages or through nix-env probably won’t work as expected, by design. The NixOS Wiki has the FAQ/Libraries entry explaining how to use them.

@erictapen’s suggestion should work, that is, using a nix-shell -p zlib (which brings in stdenv and gcc). You probably also want to uninstall any globally installed gcc.

1 Like