# LoadError: UndefVarError

**URL:** <https://discourse.julialang.org/t/loaderror-undefvarerror/11864>\
**Category:** New to Julia\
**Tags:** question, cxx\
**Created:** [June 21, 2018, 3:47pm UTC](https://discourse.julialang.org/t/loaderror-undefvarerror/11864 "2018-06-21T15:47:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avary\_Kolasinski](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@Avary\_Kolasinski](https://discourse.julialang.org/u/Avary_Kolasinski)\
**Post date:** [June 21, 2018, 3:47pm UTC](https://discourse.julialang.org/t/loaderror-undefvarerror/11864/1 "2018-06-21T15:47:22Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [June 21, 2018, 5:01pm UTC](https://discourse.julialang.org/t/loaderror-undefvarerror/11864/2 "2018-06-21T17:01:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Avary\_Kolasinski](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@Avary\_Kolasinski](https://discourse.julialang.org/u/Avary_Kolasinski)\
**Post date:** [June 21, 2018, 5:25pm UTC](https://discourse.julialang.org/t/loaderror-undefvarerror/11864/3 "2018-06-21T17:25:48Z")

</div>

Got it working. Thank you so much!
