# Trying to use JLD.jl with Julia v1.7.0-beta3

**URL:** <https://discourse.julialang.org/t/trying-to-use-jld-jl-with-julia-v1-7-0-beta3/66017>\
**Category:** General Usage\
**Created:** [August 8, 2021, 12:21pm UTC](https://discourse.julialang.org/t/trying-to-use-jld-jl-with-julia-v1-7-0-beta3/66017 "2021-08-08T12:21:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaraujo71](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aaraujo71/32/10635_2.png) [@aaraujo71](https://discourse.julialang.org/u/aaraujo71)\
**Post date:** [August 8, 2021, 12:21pm UTC](https://discourse.julialang.org/t/trying-to-use-jld-jl-with-julia-v1-7-0-beta3/66017/1 "2021-08-08T12:21:08Z")

</div>

I need to save variables of different types in Julia, and I’ve tried `JLD.jl` in Julia v1.6.2 without any problem. However, since I’m using the new Mac M1, I moved to the new upcoming release v1.7.0-beta3 (and it’s really much faster!), but I get an error after trying to use the package:

```julia
julia> using JLD
[Info: Precompiling JLD [4138dd39-2aa7-5051-a626-17a0bb65d9c8]
ERROR: LoadError: UndefVarError: libhdf5 not defined

```

I also have problems (cannot use or compile) with other related packages: `JLD2.jl`, `BSON.jl` and `HDF5.jl`. Is this a normal behaviour because it’s a beta version? Will I be able to use these packages after the stable release of v1.7?

---

<div class="post-metadata">

**Author:** ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Post date:** [August 8, 2021, 12:36pm UTC](https://discourse.julialang.org/t/trying-to-use-jld-jl-with-julia-v1-7-0-beta3/66017/2 "2021-08-08T12:36:58Z")

</div>

jld does not work with 1.7, see [https://github.com/JuliaIO/JLD.jl/issues/300#issuecomment-876362684](https://github.com/JuliaIO/JLD.jl/issues/300#issuecomment-876362684)

On my (Windows 10) machine, JLD2 and HDF5 work well with 1.7.0-beta3

---

<div class="post-metadata">

**Author:** ![aaraujo71](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aaraujo71/32/10635_2.png) [@aaraujo71](https://discourse.julialang.org/u/aaraujo71)\
**Post date:** [August 8, 2021, 12:56pm UTC](https://discourse.julialang.org/t/trying-to-use-jld-jl-with-julia-v1-7-0-beta3/66017/3 "2021-08-08T12:56:13Z")

</div>

You are right: JLD2 works fine in v.1.7.0-beta3. I don’t know why I couldn’t get it to work before. Thank you very much.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [August 8, 2021, 1:25pm UTC](https://discourse.julialang.org/t/trying-to-use-jld-jl-with-julia-v1-7-0-beta3/66017/4 "2021-08-08T13:25:27Z")

</div>

Native aarch64-apple-darwin build of Julia is still missing many binary libraries, it’ll take a while to catch up. The x86\_64-apple-darwin build running with Rosetta should work fine instead

---

<div class="post-metadata">

**Author:** ![aaraujo71](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aaraujo71/32/10635_2.png) [@aaraujo71](https://discourse.julialang.org/u/aaraujo71)\
**Post date:** [August 8, 2021, 3:13pm UTC](https://discourse.julialang.org/t/trying-to-use-jld-jl-with-julia-v1-7-0-beta3/66017/5 "2021-08-08T15:13:58Z")

</div>

But the execution time ratio is about 1/1.6, where the 1 is for the v1.7.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [August 8, 2021, 11:09pm UTC](https://discourse.julialang.org/t/trying-to-use-jld-jl-with-julia-v1-7-0-beta3/66017/6 "2021-08-08T23:09:43Z")

</div>

In case you missed it, the aarch64-apple-darwin platform is classified as [Tier 3](https://julialang.org/downloads/#support_tiers_for_the_latest_stable_release_of_julia) in terms of support, which means a lot of things won’t work. There are some [outstanding bugs](https://github.com/JuliaLang/julia/labels/apple%20silicon) that still have to be fixed. Unless you can provide help to fix them, using the x86\_64-apple-darwin build is a more stable, albeit slower, option.

On top of that, as I already said, some binaries will be missing for some time, and you can’t do much more than being patient.

---

<div class="post-metadata">

**Author:** ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)\
**Post date:** [December 14, 2021, 6:18pm UTC](https://discourse.julialang.org/t/trying-to-use-jld-jl-with-julia-v1-7-0-beta3/66017/7 "2021-12-14T18:18:17Z")

</div>

JLD.jl now works on 1.7.

---

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [December 14, 2021, 8:15pm UTC](https://discourse.julialang.org/t/trying-to-use-jld-jl-with-julia-v1-7-0-beta3/66017/8 "2021-12-14T20:15:50Z")

</div>

I find it hard to understand - should I use JLD or JLD2?

---

<div class="post-metadata">

**Author:** ![Paul\_Soderlind](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paul_soderlind/32/1753_2.png) [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Post date:** [December 14, 2021, 8:29pm UTC](https://discourse.julialang.org/t/trying-to-use-jld-jl-with-julia-v1-7-0-beta3/66017/9 "2021-12-14T20:29:12Z")

</div>

> I find it hard to understand - should I use JLD or JLD2?

That’s clearly your decision. Both seem OK with recent Julia versions. (For my own work, I moved to JLD2 a year ago.) /Paul S
