Skip to content

Cannot install FFTW on Apple M2-MAX chip, libmkl_rt_path not defined  #274

@xiang-yu

Description

@xiang-yu

Hi everyone,

I've got the following error when installing the "FFTW" package with Julia version 1.9.1 on M2 Max chip with Ventura 13.4

Any tips on resolving this?

using FFTW
│ Package FFTW not found, but a package named FFTW is available from a registry. 
│ Install package?
│   (@v1.9) pkg> add FFTW 
└ (y/n/o) [y]: y
   Updating registry at `~/.julia/registries/General.toml`
  Resolving package versions...
   Updating `~/.julia/environments/v1.9/Project.toml`
 [7a1cc6ca] + FFTW v1.7.1
   Updating `~/.julia/environments/v1.9/Manifest.toml`
 [621f4979] + AbstractFFTs v1.3.2
 [7a1cc6ca] + FFTW v1.7.1
 [f5851436] + FFTW_jll v3.3.10+0
 [1d5cc7b8] + IntelOpenMP_jll v2023.1.0+0
 [856f044c] + MKL_jll v2023.1.0+0
[ Info: Precompiling FFTW [7a1cc6ca-52ef-59f5-83cd-3a7055c09341]
ERROR: LoadError: UndefVarError: `libmkl_rt_path` not defined
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
  @ Base ./Base.jl:31
[2] top-level scope
  @ ~/.julia/packages/FFTW/HfEjB/src/providers.jl:86
[3] include(mod::Module, _path::String)
  @ Base ./Base.jl:457
[4] include(x::String)
  @ FFTW ~/.julia/packages/FFTW/HfEjB/src/FFTW.jl:1
[5] top-level scope
  @ ~/.julia/packages/FFTW/HfEjB/src/FFTW.jl:17
[6] include
  @ ./Base.jl:457 [inlined]
[7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
  @ Base ./loading.jl:2045
[8] top-level scope
  @ stdin:3
in expression starting at /Users/.julia/packages/FFTW/HfEjB/src/providers.jl:84
in expression starting at /Users/.julia/packages/FFTW/HfEjB/src/FFTW.jl:1
in expression starting at stdin:3
ERROR: Failed to precompile FFTW [7a1cc6ca-52ef-59f5-83cd-3a7055c09341] to "/Users/.julia/compiled/v1.9/FFTW/jl_HmZkkA".
Stacktrace:
[1] error(s::String)
  @ Base ./error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
  @ Base ./loading.jl:2296
[3] compilecache
  @ ./loading.jl:2163 [inlined]
[4] _require(pkg::Base.PkgId, env::String)
  @ Base ./loading.jl:1805
[5] _require_prelocked(uuidkey::Base.PkgId, env::String)
  @ Base ./loading.jl:1660
[6] macro expansion
  @ ./loading.jl:1648 [inlined]
[7] macro expansion
  @ ./lock.jl:267 [inlined]
[8] require(into::Module, mod::Symbol)
  @ Base ./loading.jl:1611

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions