Help installing ApproxFun.jl?

clean enviroment:

julia> using InteractiveUtils
julia> versioninfo()
Julia Version 1.3.0-rc5.1
Commit 36c4eb251e (2019-11-17 19:04 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, haswell)
Environment:
  JULIA = C:\Users\andre\AppData\Local\Julia-1.3.0-rc5\bin\julia.exe
  JULIA_NUM_THREADS = 4
  JULIA_EDITOR = "C:\Program Files\Microsoft VS Code\Code.exe"

ApproxFun.jl installs, but fails to precompile FFTW:

julia> using ApproxFun
[ Info: Precompiling ApproxFun [28f2ccd6-bb30-5033-b560-165f7b14dc2f]
ERROR: LoadError: FFTW is not properly installed. Please run Pkg.build("FFTW") and restart Julia.
Stacktrace:
 [1] error(::String, ::String) at .\error.jl:42
 [2] top-level scope at C:\Users\andre\.julia\packages\FFTW\2okGQ\src\FFTW.jl:21
 [3] include at .\boot.jl:328 [inlined]
 [4] include_relative(::Module, ::String) at .\loading.jl:1105
 [5] include(::Module, ::String) at .\Base.jl:31
 [6] top-level scope at none:2
 [7] eval at .\boot.jl:330 [inlined]
 [8] eval(::Expr) at .\client.jl:425
 [9] top-level scope at .\none:3
in expression starting at C:\Users\andre\.julia\packages\FFTW\2okGQ\src\FFTW.jl:18
ERROR: LoadError: Failed to precompile FFTW [7a1cc6ca-52ef-59f5-83cd-3a7055c09341] to C:\Users\andre\.julia\compiled\v1.3\FFTW\PvIn2_bGGdY.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1283
 [3] _require(::Base.PkgId) at .\loading.jl:1024
 [4] require(::Base.PkgId) at .\loading.jl:922
 [5] require(::Module, ::Symbol) at .\loading.jl:917
 [6] include at .\boot.jl:328 [inlined]
 [7] include_relative(::Module, ::String) at .\loading.jl:1105
 [8] include(::Module, ::String) at .\Base.jl:31
 [9] top-level scope at none:2
 [10] eval at .\boot.jl:330 [inlined]
 [11] eval(::Expr) at .\client.jl:425
 [12] top-level scope at .\none:3
in expression starting at C:\Users\andre\.julia\packages\ApproxFun\prrPP\src\ApproxFun.jl:2
ERROR: Failed to precompile ApproxFun [28f2ccd6-bb30-5033-b560-165f7b14dc2f] to C:\Users\andre\.julia\compiled\v1.3\ApproxFun\jGqLz_bGGdY.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1283
 [3] _require(::Base.PkgId) at .\loading.jl:1024
 [4] require(::Base.PkgId) at .\loading.jl:922
 [5] require(::Module, ::Symbol) at .\loading.jl:917

trying to precompile FFTW:

julia> using Pkg
julia> Pkg.build("FFTW")
  Building Conda → `C:\Users\andre\.julia\packages\Conda\kLXeC\deps\build.log`
false

any idea on how to proceed?

Did the

pkg> build FFTW

actually error? Try

using FFTW

and make sure that works first.

Finally i get it working. The problem was on the FFTW side, where build.jl and build_fftw.jl were not present. With some manual file management i get it working with no problem

Perhaps you should file an issue with FFTW.jl and also show your workaround to benefit future users.

my workaround was the following (i have to thank @giordano for the sugesstion on Slack)

  1. locate C:\Users\USER\.julia\packages\FFTW\2okGQ\deps
  2. delete everything there except build.jl and build_fftw.jl . if those files are’t there, you can get those here
  3. Build again:
    pkg> build FFTW
    the problem was also present on FFTW, using FFTW gave me the same error. an issue was submitted here