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

Cannot add LibSSH2_jll #125

Closed
1 task done
izahn opened this issue Sep 10, 2021 · 1 comment · Fixed by #126
Closed
1 task done

Cannot add LibSSH2_jll #125

izahn opened this issue Sep 10, 2021 · 1 comment · Fixed by #126

Comments

@izahn
Copy link
Contributor

izahn commented Sep 10, 2021

Issue:

When trying to add libSSH2_jll I get this error:

 ~ $ julia                                                                                                                                         (julia2) 
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.6.2 (2021-07-14)
 _/ |\__'_|_|_|\__'_|  |  conda-forge-julia release
|__/                   |

julia> import Pkg

julia> Pkg.add("LibSSH2_jll")
  Installing known registries into `~/.julia`
       Added registry `General` to `~/.julia/registries/General`
   Resolving package versions...
    Updating `~/.julia/environments/v1.6/Project.toml`
  [29816b5a] + LibSSH2_jll
    Updating `~/.julia/environments/v1.6/Manifest.toml`
  [56f22d72] + Artifacts
  [8f399da3] + Libdl
  [29816b5a] + LibSSH2_jll
  [c8ffd9c3] + MbedTLS_jll
Precompiling project...
  ✗ LibSSH2_jll
  1 dependency successfully precompiled in 4 seconds
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

julia> import LibSSH2_jll
[ Info: Precompiling LibSSH2_jll [29816b5a-b9ab-546f-933c-edad1886dfa8]
ERROR: LoadError: InitError: could not load library "libmbedcrypto.so.5"
libmbedcrypto.so.5: cannot open shared object file: No such file or directory
Stacktrace:
  [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
    @ Base.Libc.Libdl ./libdl.jl:114
  [2] dlopen (repeats 2 times)
    @ ./libdl.jl:114 [inlined]
  [3] __init__()
    @ MbedTLS_jll ~/mambaforge/envs/julia2/share/julia/stdlib/v1.6/MbedTLS_jll/src/MbedTLS_jll.jl:40
  [4] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base ./loading.jl:696
  [5] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
    @ Base ./loading.jl:782
  [6] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1020
  [7] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:936
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:923
  [9] include
    @ ./Base.jl:386 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1235
 [11] top-level scope
    @ none:1
 [12] eval
    @ ./boot.jl:360 [inlined]
 [13] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [14] top-level scope
    @ none:1
during initialization of module MbedTLS_jll
in expression starting at /home/izahn/mambaforge/envs/julia2/share/julia/stdlib/v1.6/LibSSH2_jll/src/LibSSH2_jll.jl:5
ERROR: Failed to precompile LibSSH2_jll [29816b5a-b9ab-546f-933c-edad1886dfa8] to /home/izahn/.julia/compiled/v1.6/LibSSH2_jll/jl_I1yS8u.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1385
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1329
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1043
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:936
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:923

Environment (conda list):
$ conda list
# packages in environment at /home/izahn/mambaforge/envs/julia2:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       1_gnu    conda-forge
arpack                    3.7.0                hdefa2d7_2    conda-forge
bzip2                     1.0.8                h7f98852_4    conda-forge
c-ares                    1.17.2               h7f98852_0    conda-forge
ca-certificates           2021.5.30            ha878542_0    conda-forge
curl                      7.78.0               hea6ffbf_0    conda-forge
expat                     2.4.1                h9c3ff4c_0    conda-forge
gettext                   0.19.8.1          h73d1719_1006    conda-forge
git                       2.33.0          pl5321hc30692c_0    conda-forge
gmp                       6.2.1                h58526e2_0    conda-forge
julia                     1.6.2                hbb0e23a_1    conda-forge
krb5                      1.19.2               hcc1bbae_0    conda-forge
libblas                   3.9.0           11_linux64_openblas    conda-forge
libcblas                  3.9.0           11_linux64_openblas    conda-forge
libcurl                   7.78.0               h2574ce0_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 h516909a_1    conda-forge
libffi                    3.4.2                h9c3ff4c_1    conda-forge
libgcc-ng                 11.1.0               hc902ee8_8    conda-forge
libgfortran-ng            11.1.0               h69a702a_8    conda-forge
libgfortran5              11.1.0               h6c583b3_8    conda-forge
libgit2                   1.1.1                hee63804_1    conda-forge
libgomp                   11.1.0               hc902ee8_8    conda-forge
libiconv                  1.16                 h516909a_0    conda-forge
liblapack                 3.9.0           11_linux64_openblas    conda-forge
libnghttp2                1.43.0               h812cca2_0    conda-forge
libopenblas               0.3.17          pthreads_h8fe5266_1    conda-forge
libopenblas-ilp64         0.3.17          pthreads_h0aa5bea_1    conda-forge
libssh2                   1.10.0               ha56f1ee_0    conda-forge
libstdcxx-ng              11.1.0               h56837e0_8    conda-forge
libunwind                 1.5.0                h9c3ff4c_1    conda-forge
libutf8proc               2.6.1                h7f98852_0    conda-forge
metis                     5.1.0             h58526e2_1006    conda-forge
mpfr                      4.1.0                h9202a9a_1    conda-forge
ncurses                   6.2                  h58526e2_4    conda-forge
openblas-ilp64            0.3.17          pthreads_h3d04fff_1    conda-forge
openlibm                  0.7.0                h516909a_0    conda-forge
openssl                   1.1.1l               h7f98852_0    conda-forge
p7zip                     16.02             he1b5a44_1000    conda-forge
pcre2                     10.37                h032f7d1_0    conda-forge
perl                      5.32.1          0_h7f98852_perl5    conda-forge
suitesparse               5.4.0                h717dc36_0    conda-forge
tbb                       2020.2               h4bd325d_4    conda-forge
tk                        8.6.11               h27826a3_1    conda-forge
zlib                      1.2.11            h516909a_1010    conda-forge


Details about conda and system ( conda info ):
$ conda info
     active environment : julia2
    active env location : /home/izahn/mambaforge/envs/julia2
            shell level : 2
       user config file : /home/izahn/.condarc
 populated config files : /home/izahn/mambaforge/.condarc
                          /home/izahn/.condarc
          conda version : 4.10.3
    conda-build version : 3.21.4
         python version : 3.9.7.final.0
       virtual packages : __linux=5.13.13=0
                          __glibc=2.33=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/izahn/mambaforge  (writable)
      conda av data dir : /home/izahn/mambaforge/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/izahn/mambaforge/pkgs
                          /home/izahn/.conda/pkgs
       envs directories : /home/izahn/mambaforge/envs
                          /home/izahn/.conda/envs
               platform : linux-64
             user-agent : conda/4.10.3 requests/2.26.0 CPython/3.9.7 Linux/5.13.13-arch1-1 arch/rolling glibc/2.33
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False
@izahn izahn mentioned this issue Sep 10, 2021
5 tasks
@izahn
Copy link
Contributor Author

izahn commented Sep 10, 2021

This will be fixed by #126

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

Successfully merging a pull request may close this issue.

1 participant