# Mismatch tree error when installing package in NFS location

**URL:** https://discourse.julialang.org/t/mismatch-tree-error-when-installing-package-in-nfs-location/41757
**Category:** New to Julia
**Tags:** question, package
**Created:** [June 20, 2020, 12:06am UTC](https://discourse.julialang.org/t/mismatch-tree-error-when-installing-package-in-nfs-location/41757 "2020-06-20T00:06:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Fritz\_Ratnasamy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fritz_ratnasamy/32/13715_2.png) [@Fritz\_Ratnasamy](https://discourse.julialang.org/u/Fritz_Ratnasamy)
#### Post date: [June 20, 2020, 12:06am UTC](https://discourse.julialang.org/t/mismatch-tree-error-when-installing-package-in-nfs-location/41757/1 "2020-06-20T00:06:16Z")

</div>

Issues occurs when installing packages (like OpenSpecFun, Zlib,CompilerSupportLibraries) or after package installation (Flux).

```julia
``using ("Flux")
  Installed OpenSpecFun_jll ────────────── v0.5.3+3
  Installed CodecZlib ──────────────────── v0.7.0
  Installed BinaryProvider ─────────────── v0.5.10
  Installed Flux ───────────────────────── v0.10.4
  Installed Zygote ─────────────────────── v0.4.20
  Installed ZipFile ────────────────────── v0.9.2
  Installed CompilerSupportLibraries_jll ─ v0.3.3+0
  Installed Zlib_jll ───────────────────── v1.2.11+10
  Installed ZygoteRules ────────────────── v0.2.0
  Installed SpecialFunctions ───────────── v0.10.3
Error: Tree Hash Mismatch!
│ Expected git-tree-sha1: 0fd0fb67de786e5d7b2eb67181d35e4bcab639cf
│ Calculated git-tree-sha1: b5dfbf709a492a96aa4dcaf46616293ce08b7eab
ERROR: LoadError: LoadError: InitError: Unable to automatically install 'CompilerSupportLibraries' from '/home/johndoe/.julia/packages/CompilerSupportLibraries_jll/kmL78/Artifacts.toml'
``

```

For some reason, the computation of the git-tree-sha1 is not correct for many packages in Julia.  
Similar error message is being displayed for OpenSpecFun, Zlib packages (Platform Red Hat Linux cluster x86-64).

One workaround to install the packages successfully is to define:  
`export JULIA_DEPOT_PATH=dir`  
where dir has to be a non NFS directory.

Another solution is to install CompilerSupportLibraries manually by creating a folder (named with the git tree sha1 # expected 0fd0fb67de786e5d7b2eb67181d35e4bcab639cf) and install the package in that folder from github:

```julia
johndoe@mcn19: mkdir –p ~/.julia/artifacts/0fd0fb67de786e5d7b2eb67181d35e4bcab639cf
johndoe@mcn19: wget -O - https://github.com/JuliaBinaryWrappers/CompilerSupportLibraries_jll.jl/releases/download/CompilerSupportLibraries-v0.3.3+0/CompilerSupportLibraries.v0.3.3.x86_64-linux-gnu-libgfortran4.tar.gz | tar -xzvf - -C ~/.julia/artifacts/0fd0fb67de786e5d7b2eb67181d35e4bcab639cf

```

You can find all the releases of CompilerSupportLibraries\_jll here [https://github.com/JuliaBinaryWrappers/CompilerSupportLibraries\_jll.jl/releases](https://github.com/JuliaBinaryWrappers/CompilerSupportLibraries_jll.jl/releases)  
select the package based on your Linux architecture (it is very important to download the package specific to the Linux arch, use this following lines in Julia to find your Linux Arch)

```julia
julia> using Pkg.BinaryPlatforms
julia> triplet(platform_key_abi())
"x86_64-linux-gnu-libgfortran4-cxx11"

```

Is there a fix for installation of packages in a NFS location?
