Julia is complaining about “JULIA_HOME”
Do I need the windows environment variable to be defined or is it a global string?
See below for the error I get.
Should I open an issue on WinRPM?
I am actually not sure if what I am seeing is related to WinRPM…
C:\Julia-0.7.X\bin>julia.exe
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: https://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.7.0-DEV.4474 (2018-03-06 17:45 UTC)
_/ |\__'_|_|_|\__'_| | Commit e542b28ac2* (6 days old master)
|__/ | x86_64-w64-mingw32
julia> ENV["JULIA_HOME"]
"C:\\Julia-0.7.X\\bin\\"
julia> JULIA_HOME=ENV["JULIA_HOME"]
"C:\\Julia-0.7.X\\bin\\"
julia> versioninfo()
Julia Version 0.7.0-DEV.4474
Commit e542b28ac2* (2018-03-06 17:45 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, skylake)
Environment:
JULIA_BINDIR = C:\JULIA-0.7.x\BIN
JULIA_HOME = C:\Julia-0.7.X\bin\
julia> Pkg.buildWARNING: Base.Pkg is deprecated, run `using Pkg` instead
in module Main
julia> Pkg.build("WinRPM")
WARNING: Base.Pkg is deprecated, run `using Pkg` instead
in module Main
[ Info: Building WinRPM
WARNING: importing deprecated binding Base.Void into WinRPM.
WARNING: Base.Void is deprecated, use Nothing instead.
likely near C:\Users\bernhard.konig\.julia\v0.7\WinRPM\src\WinRPM.jl:55
WARNING: Base.Void is deprecated, use Nothing instead.
likely near C:\Users\bernhard.konig\.julia\v0.7\WinRPM\src\WinRPM.jl:55
WARNING: Base.Void is deprecated, use Nothing instead.
likely near C:\Users\bernhard.konig\.julia\v0.7\WinRPM\src\WinRPM.jl:128
WARNING: Base.Void is deprecated, use Nothing instead.
likely near C:\Users\bernhard.konig\.julia\v0.7\WinRPM\src\WinRPM.jl:128
WARNING: Base.Void is deprecated, use Nothing instead.
likely near C:\Users\bernhard.konig\.julia\v0.7\WinRPM\src\WinRPM.jl:128
in consume_function at C:\Users\bernhard.konig\.julia\v0.7\LibExpat\src\xpath.jl
┌ Warning: `assert` is deprecated, use `@assert` instead.
│ caller = xpath_parse(::String, ::Int64, ::Bool) at xpath.jl:216
└ @ LibExpat xpath.jl:216
┌ Warning: `nb_available` is deprecated, use `bytesavailable` instead.
│ caller = xpath_parse_expr(::String, ::Int64, ::Int64, ::Bool) at xpath.jl:473
└ @ LibExpat xpath.jl:473
┌ Warning: `nb_available` is deprecated, use `bytesavailable` instead.
│ caller = xpath_parse_expr(::String, ::Int64, ::Int64, ::Bool) at xpath.jl:463
└ @ LibExpat xpath.jl:463
┌ Warning: `nb_available` is deprecated, use `bytesavailable` instead.
│ caller = xpath_parse_expr(::String, ::Int64, ::Int64, ::Bool) at xpath.jl:428
└ @ LibExpat xpath.jl:428
┌ Warning: `isalnum(c::Char)` is deprecated, use `isalpha(c) || isnumeric(c)` instead.
│ caller = xpath_parse_expr(::String, ::Int64, ::Int64, ::Bool) at xpath.jl:438
└ @ LibExpat xpath.jl:438
WARNING: Base.Void is deprecated, use Nothing instead.
likely near C:\Users\bernhard.konig\.julia\v0.7\WinRPM\src\WinRPM.jl:330
WARNING: Base.Void is deprecated, use Nothing instead.
likely near C:\Users\bernhard.konig\.julia\v0.7\WinRPM\src\WinRPM.jl:330
WARNING: Base.Void is deprecated, use Nothing instead.
likely near C:\Users\bernhard.konig\.julia\v0.7\WinRPM\src\WinRPM.jl:330
in consume_function at C:\Users\bernhard.konig\.julia\v0.7\LibExpat\src\xpath.jl
┌ Warning: `assert` is deprecated, use `@assert` instead.
│ caller = xpath_parse(::String, ::Int64, ::Bool) at xpath.jl:216
└ @ LibExpat xpath.jl:216
┌ Warning: Loop variable `installed` around C:\Users\bernhard.konig\.julia\v0.7\WinRPM\src\WinRPM.jl:424 overwrites a variable in an enclosing scope. In the future the variable will be local to the loop instead.
└ @ nothing WinRPM.jl:424
ERROR: LoadError: UndefVarError: JULIA_HOME not defined
Stacktrace:
[1] top-level scope
[2] include(::Module, ::String) at .\boot.jl:305
[3] include_relative(::Module, ::String) at .\loading.jl:1072
[4] include(::Module, ::String) at .\sysimg.jl:29
[5] top-level scope
[6] eval at .\boot.jl:308 [inlined]
[7] top-level scope at .\<missing>:3
in expression starting at C:\Users\bernhard.konig\.julia\v0.7\WinRPM\src\WinRPM.jl:449
┌ Error: ------------------------------------------------------------
│ # Build failed for WinRPM
│ exception =
│ LoadError: Failed to precompile WinRPM to C:\Users\bernhard.konig\.julia\compiled\v0.7\WinRPM.ji.
│ Stacktrace:
│ [1] error at .\error.jl:33 [inlined]
│ [2] compilecache(::Base.PkgId) at .\loading.jl:1206
│ [3] _require(::Base.PkgId) at .\loading.jl:1008
│ [4] require(::Base.PkgId) at .\loading.jl:879
│ [5] require(::Module, ::Symbol) at .\loading.jl:874
│ [6] include(::Module, ::String) at .\boot.jl:305
│ [7] include_relative(::Module, ::String) at .\loading.jl:1072
│ [8] include at .\sysimg.jl:29 [inlined]
│ [9] include(::String) at .\loading.jl:1106
│ [10] top-level scope
│ [11] eval at .\boot.jl:308 [inlined]
│ [12] eval at .\sysimg.jl:74 [inlined]
│ [13] evalfile(::String, ::Array{String,1}) at .\loading.jl:1101 (repeats 2 times)
│ [14] #6 at .\none:13 [inlined]
│ [15] cd(::getfield(, Symbol("##6#8")){String}, ::String) at .\file.jl:61
│ [16] (::getfield(, Symbol("##5#7")))(::IOStream) at .\none:12
│ [17] #open#318(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::getfield(, Symbol("##5#7")), ::String, ::Vararg{String,N} where N) at .\iostream.jl:369
│ [18] open(::Function, ::String, ::String) at .\iostream.jl:367
│ [19] top-level scope
│ [20] eval at .\boot.jl:308 [inlined]
│ [21] eval(::Module, ::Expr) at .\sysimg.jl:74
│ [22] exec_options(::Base.JLOptions) at .\client.jl:304
│ [23] _start() at .\client.jl:455
│ in expression starting at C:\Users\bernhard.konig\.julia\v0.7\WinRPM\deps\build.jl:1
└ @ Main none:16
┌ Warning: ------------------------------------------------------------
│ # Build error summary
│
│ WinRPM had build errors.
│
│ - packages with build errors remain installed in C:\Users\bernhard.konig\.julia\v0.7
│ - build the package(s) and all dependencies with `Pkg.build("WinRPM")`
│ - build a single package by running its `deps/build.jl` script
└ @ Pkg.Entry entry.jl:649
julia>