The installation of Dynare in Julia

Dear Dynare Team,
I would like to ask for help with installation of Dynare in Julia. In Julia REPL, I tried to install the Dynare package. I entered] add Dynare, but the following error occurred. Is there any solution?
ERROR: Unable to automatically download/install artifact ‘PARMETIS’ from sources listed in ‘C:\Users\95836.julia\packages\PARMETIS_jll\EnBcT\Artifacts.toml’.
Sources attempted:

@MichelJuillard may be able to help.

This seems to be a problem that appeared in Julia on Windows lately. See Artifact hash mismatch with P4est_jll on Julia v1.10 · Issue #3643 · JuliaLang/Pkg.jl · GitHub

  1. Could you please send me the entire error log in your case
  2. Work in a new Julia environment
  3. One workaround is to turn on the Developer mode in Windows
  4. Another workaround is to do the following:
    julia> ENV[“JULIA_PKG_IGNORE_HASHES”]=1
    julia> using Pkg
    julia> Pkg.add(“PARMETIS_jll”)
    julia> Pkg.add(“Dynare”)

Thank you for your reply.
1.I do the following in Julia REPL:
julia> ENV[“JULIA_PKG_IGNORE_HASHES”]=1
(@v1.10) pkg> add PARMETIS_jll

but the following error still occurs:
Resolving package versions…
Downloading artifact: PARMETIS
┌ Error: Tree Hash Mismatch!
│ Expected git-tree-sha1: b0c7cde3da8c6be9929ce13ad69eb8f23aca524f
│ Calculated git-tree-sha1: bffee9991c449ef65142edc63afffdf4d05fcc1e
│ $JULIA_PKG_IGNORE_HASHES is set to 1: ignoring error and moving artifact to the expected location
Downloaded artifact: PARMETIS
Updating C:\Users\95836\.julia\environments\v1.10\Project.toml
[b247a4be] + PARMETIS_jll v4.0.6+1
Updating C:\Users\95836\.julia\environments\v1.10\Manifest.toml
[692b3bcd] + JLLWrappers v1.5.0
[3da0fdf6] + MPIPreferences v0.1.10
[21216c6a] + Preferences v1.4.1
[e33a78d0] + Hwloc_jll v2.10.0+0
[d00139f3] + METIS_jll v5.1.2+0
[7cb0a576] + MPICH_jll v4.1.2+1
[f1f71cc9] + MPItrampoline_jll v5.3.1+1
[9237b28f] + MicrosoftMPI_jll v10.1.4+1
[fe0851c0] + OpenMPI_jll v5.0.1+0
[458c3c95] + OpenSSL_jll v3.0.12+0
[b247a4be] + PARMETIS_jll v4.0.6+1
[32165bc3] + PMIx_jll v4.2.7+0
[1080aeaf] + libevent_jll v2.1.13+1
[eb928a42] + prrte_jll v3.0.2+0
[0dad84c5] + ArgTools v1.1.1
[56f22d72] + Artifacts
[2a0f44e3] + Base64
[ade2ca70] + Dates
[f43a241f] + Downloads v1.6.0
[7b1f6079] + FileWatching
[b77e0a4c] + InteractiveUtils
[4af54fe1] + LazyArtifacts
[b27032c2] + LibCURL v0.6.4
[76f85450] + LibGit2
[8f399da3] + Libdl
[56ddb016] + Logging
[d6f4376e] + Markdown
[ca575930] + NetworkOptions v1.2.0
[44cfe95a] + Pkg v1.10.0
[de0858da] + Printf
[3fa0cd96] + REPL
[9a3f8284] + Random
[ea8e919c] + SHA v0.7.0
[9e88b42a] + Serialization
[6462fe0b] + Sockets
[fa267f1f] + TOML v1.0.3
[a4e569a6] + Tar v1.10.0
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
[e66e0078] + CompilerSupportLibraries_jll v1.0.5+1
[deac9b47] + LibCURL_jll v8.4.0+0
[e37daf67] + LibGit2_jll v1.6.4+0
[29816b5a] + LibSSH2_jll v1.11.0+1
[c8ffd9c3] + MbedTLS_jll v2.28.2+1
[14a3606d] + MozillaCACerts_jll v2023.1.10
[83775a58] + Zlib_jll v1.2.13+1
[8e850ede] + nghttp2_jll v1.52.0+1
[3f19e933] + p7zip_jll v17.4.0+2
Precompiling project…
15 dependencies successfully precompiled in 7 seconds. 2 already precompiled.

I’m sorry I couldn’t find where to set up Developer mode in Windows11,and I haven’t solved this installation problem yet.

and the entire error log are as follows(In addition to the error reported in the problem description I mentioned):

Stacktrace:
[1] error(s::String)
@ Base .\error.jl:35
[2] ensure_artifact_installed(name::String, meta::Dict{String, Any}, artifacts_toml::String; platform::Base.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool, io::Base.TTY)
@ Pkg.Artifacts C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\Artifacts.jl:422
[3] download_artifacts(env::Pkg.Types.EnvCache; platform::Base.BinaryPlatforms.Platform, julia_version::VersionNumber,
verbose::Bool, io::Base.TTY)
@ Pkg.Operations C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:755
[4] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
@ Pkg.Operations C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:1394
[5] add
@ Pkg.Operations C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\Operations.jl:1376 [inlined]
[6] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{io::Base.TTY})
@ Pkg.API C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\API.jl:278
[7] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{})
@ Pkg.API C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\API.jl:159
[8] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\API.jl:148
[9] do_cmd!(command::Pkg.REPLMode.Command, repl::REPL.LineEditREPL)
@ Pkg.REPLMode C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\REPLMode\REPLMode.jl:412
[10] do_cmd(repl::REPL.LineEditREPL, input::String; do_rethrow::Bool)
@ Pkg.REPLMode C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\REPLMode\REPLMode.jl:390
[11] do_cmd
@ Pkg.REPLMode C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\REPLMode\REPLMode.jl:380 [inlined]
[12] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
@ Pkg.REPLMode C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\Pkg\src\REPLMode\REPLMode.jl:557
[13] #invokelatest#2
@ Base .\essentials.jl:887 [inlined]
[14] invokelatest
@ Base .\essentials.jl:884 [inlined]
[15] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
@ REPL.LineEdit C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\REPL\src\LineEdit.jl:2656
[16] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
@ REPL C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\REPL\src\REPL.jl:1312
[17] (::REPL.var"#62#68"{REPL.LineEditREPL, REPL.REPLBackendRef})()
@ REPL C:\Users\95836\AppData\Local\Programs\Julia-1.10.0\share\julia\stdlib\v1.10\REPL\src\REPL.jl:386

The installation problem of dynare package has been solved.
I guess it is
julia>ENV[“JULIA_PKG_IGNORE_HASHES”]=1
(@v1.10) pkg> add PARMETIS_jll,
helps, because I re-entered (@v1.10) pkg> add Dynare today,and it showed that the installation was successful and it can be used normally.