LoadError: UndefVarError

question

#1

I am trying to install Cxx on Julia and when I do Pkg.build(“Cxx”) I get the following error:

julia> Pkg.build(“Cxx”)
Building Cxx → ~/.julia/packages/Cxx/E2Qs/deps/build.log
┌ Error: Error building Cxx:
│ ERROR: LoadError: UndefVarError: JULIA_HOME not defined
│ Stacktrace:
│ [1] top-level scope at none:0
│ [2] include at ./boot.jl:317 [inlined]
│ [3] include_relative(::Module, ::String) at ./loading.jl:1075
│ [4] include(::Module, ::String) at ./sysimg.jl:29
│ [5] include(::String) at ./client.jl:393
│ [6] top-level scope at none:0
│ in expression starting at /Users/kolasinski2/.julia/packages/Cxx/E2Qs/deps/build.jl:18
└ @ Pkg.Operations Operations.jl:971

Any ideas on how to resolve this issue?


#2

It looks like you’re using the v0.7-alpha release of Julia, which is not supported by any of the released versions of Cxx.jl. If you want a more stable package experience, use the stable v0.6.3 release of Julia.


#3

Got it working. Thank you so much!