Skip to content

ERROR: LoadError: UndefVarError: libhdf5 not defined in Julia 1.10 DEV #1080

@truedichotomy

Description

@truedichotomy

When I tried to install HDF5 master in Julia 1.10 DEV, I get the following error:

(@ocean) pkg> add https://github.com/JuliaIO/HDF5.jl
    Updating git-repo `https://github.com/JuliaIO/HDF5.jl`
   Resolving package versions...
    Updating `~/.julia/environments/ocean/Project.toml`
  [f67ccb44] + HDF5 v0.17.0 `https://github.com/JuliaIO/HDF5.jl#master`
    Updating `~/.julia/environments/ocean/Manifest.toml`
  [f67ccb44] + HDF5 v0.17.0 `https://github.com/JuliaIO/HDF5.jl#master`
  [3da0fdf6] + MPIPreferences v0.1.8
Precompiling project...
  ✗ HDF5
  0 dependencies successfully precompiled in 2 seconds. 653 already precompiled.
  1 dependency errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the package

(@ocean) pkg> precompile
Precompiling project...
  ✗ HDF5
  0 dependencies successfully precompiled in 2 seconds. 653 already precompiled.

ERROR: The following 1 direct dependency failed to precompile:

HDF5 [f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f]

Failed to precompile HDF5 [f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f] to "/Users/gong/.julia/compiled/v1.10/HDF5/jl_WCZkry".
ERROR: LoadError: UndefVarError: `libhdf5` not defined

versioninfo:

julia> versioninfo()
Julia Version 1.10.0-DEV.1536
Commit 71a6a32099 (2023-06-20 21:51 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin22.5.0)
  CPU: 8 × Apple M2
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)
  Threads: 1 on 4 virtual cores

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions