NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.51k stars 13.69k forks source link

R package 'openssl' does not install #30593

Closed aswan89 closed 6 years ago

aswan89 commented 6 years ago

Issue description

Installing the R package 'openssl' at a project level or user level as outlined in the R-modules README throws the following error:

Error: package or namespace load failed for 'openssl' in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/nix/store/izh9khd6nn25mdzcp2wnwmhgl5m0y6nw-r-openssl-.9.7/library/openssl/libs/openssl.so':
libssl.so.1.0.0: cannot open shared object file: No such file or directory

Steps to reproduce

Create a new directory, then create a default.nix file within it containing the following

let
  pkgs = import <nixpkgs> {};
  stdenv = pkgs.stdenv;
in with pkgs; {
  myProject = stdenv.mkDerivation {
    name = "myProject";
    version = "1";
    src = if pkgs.lib.inNixShell then null else nix;

    buildInputs = with rPackages; [
      R
      openssl
    ];
  };
}

Run nix-shell . within the new directory.

Technical details

mimame commented 6 years ago

Hi @aswan89 This was fixed yesterday in master https://github.com/NixOS/nixpkgs/commit/458331408e04608efcb4e09fbdfea36839f9aa02 Could you give it a try?

Thanks in advance

aswan89 commented 6 years ago

I just ran the Rstudio upgrade as prescribed and everything installed properly. It appears to be fixed.