# Yggdrasil: LoadError: Dependency HDF5\_jll specifies a version, use build\_version and/or compat instead

**URL:** https://discourse.julialang.org/t/yggdrasil-loaderror-dependency-hdf5-jll-specifies-a-version-use-build-version-and-or-compat-instead/68134
**Category:** Package Management
**Tags:** binarybuilder, yggdrasil
**Created:** [September 14, 2021, 9:10am UTC](https://discourse.julialang.org/t/yggdrasil-loaderror-dependency-hdf5-jll-specifies-a-version-use-build-version-and-or-compat-instead/68134 "2021-09-14T09:10:39Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [November 29, 2023, 10:19pm UTC](https://discourse.julialang.org/t/yggdrasil-loaderror-dependency-hdf5-jll-specifies-a-version-use-build-version-and-or-compat-instead/68134/2 "2023-11-29T22:19:30Z")

</div>

For anyone hitting this issue, I scavenged the script that Alexander was referring to over two years ago, it’s

> <https://github.com/JuliaPackaging/Yggdrasil/blob/5b9aa3d48766ab2681f6b92e0b7e6116ddfc5e27/N/NetCDF/common.jl#L76>

What the error is saying that `Dependecy` has a `PackageSpec` argument which specifies the version number, but instead the syntax should be something like

```julia
Dependency("HDF5_jll"; compat="1.12.0") # this adds a compat bound in the generated JLL package _and_ uses the minimum compatible version as build version
Dependency("HDF5_jll", v"1.12.0") # this only specifies the version to use for the build, without saving a compat bound in the generated JLL package

```

The former is preferred to the latter because it’s always better to specific compat bounds when possible.

---

_[View the full topic](https://discourse.julialang.org/t/yggdrasil-loaderror-dependency-hdf5-jll-specifies-a-version-use-build-version-and-or-compat-instead/68134)._
