# Error with new versions

**URL:** <https://discourse.julialang.org/t/error-with-new-versions/4544>\
**Category:** New to Julia\
**Created:** [June 29, 2017, 3:26pm UTC](https://discourse.julialang.org/t/error-with-new-versions/4544 "2017-06-29T15:26:38Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jayreif](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jayreif/32/8782_2.png) [@jayreif](https://discourse.julialang.org/u/jayreif)\
**Post date:** [June 29, 2017, 3:26pm UTC](https://discourse.julialang.org/t/error-with-new-versions/4544/1 "2017-06-29T15:26:38Z")

</div>

I’m a Julia rookie trying to update to the newer versions of Julia on a Windows machine. I successfully installed V0.5, but could never get V0.5.1, V0.5.2, and now V0.6 to install. When I run the installation file after downloading, it says it’s installed everything. But running the julia.exe to start the REPL just flashes the REPL on the screen then immediately goes away. Uninstalling and reinstalling does the same thing. Any help would be great; I’d love to not be stuck in the 0.5 world while everyone else is moving forward.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ihnorton/32/26_2.png) [@ihnorton](https://discourse.julialang.org/u/ihnorton)\
**Post date:** [June 29, 2017, 3:34pm UTC](https://discourse.julialang.org/t/error-with-new-versions/4544/2 "2017-06-29T15:34:18Z")

</div>

Please try running `julia.exe` in the console (cmd.exe) and post any errors. Perhaps also include whether it is on a shared network drive, and if you have a local firewall running.

---

<div class="post-metadata">

**Author:** ![jayreif](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jayreif/32/8782_2.png) [@jayreif](https://discourse.julialang.org/u/jayreif)\
**Post date:** [June 29, 2017, 3:48pm UTC](https://discourse.julialang.org/t/error-with-new-versions/4544/3 "2017-06-29T15:48:36Z")

</div>

No errors when I run from the console. It seems to install just fine. Running julia.exe from the V0.6.0 folder from console says:  
“ERROR: System image file failed consistency check: maybe opened the wrong version?”  
Is that an error with how the julia command is set up in the console? I don’t see how that would effect trying to run the 0.6.0 version.

---

<div class="post-metadata">

**Author:** ![jayreif](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jayreif/32/8782_2.png) [@jayreif](https://discourse.julialang.org/u/jayreif)\
**Post date:** [June 29, 2017, 3:56pm UTC](https://discourse.julialang.org/t/error-with-new-versions/4544/4 "2017-06-29T15:56:40Z")

</div>

Well I’ll be. I had an environment variable set for 0.5.0, and changing it to 0.6.0 seems to have fixed it. Thanks for the help ihnorton!

---

<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 29, 2017, 5:59pm UTC](https://discourse.julialang.org/t/error-with-new-versions/4544/5 "2017-06-29T17:59:07Z")

</div>

@jayreif for the benefit of future search users, what was the environment variable in question?

---

<div class="post-metadata">

**Author:** ![js135005](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/js135005/32/8219_2.png) [@js135005](https://discourse.julialang.org/u/js135005)\
**Post date:** [June 29, 2017, 6:12pm UTC](https://discourse.julialang.org/t/error-with-new-versions/4544/6 "2017-06-29T18:12:47Z")

</div>

On Windows, it’s usually something like JULIA\_HOME. Don’t know for other implementations.

---

<div class="post-metadata">

**Author:** ![jayreif](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jayreif/32/8782_2.png) [@jayreif](https://discourse.julialang.org/u/jayreif)\
**Post date:** [June 29, 2017, 6:19pm UTC](https://discourse.julialang.org/t/error-with-new-versions/4544/7 "2017-06-29T18:19:46Z")

</div>

$JULIA\_HOME which I believe I had I to set up be able to call Julia from the command line or powershell, but I can’t find the guide that took me to doing that anymore. Anyway, $JULIA\_HOME was set to the binary fines of Julia-0.5.0, and all I did to fix it was change it to Julia-0.6.0. I imagine I’ll need to do the same for future updates.

---

<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 29, 2017, 6:41pm UTC](https://discourse.julialang.org/t/error-with-new-versions/4544/8 "2017-06-29T18:41:12Z")

</div>

Ah, yeah, that seems like it would be a problem.

I haven’t used Julia on Windows much, but I’d be surprised if setting JULIA\_HOME was actually necessary. If you don’t mind experimenting, what happens if you just remove that environment variable entirely? If it is necessary in some cases, then we should fix the docs.

---

<div class="post-metadata">

**Author:** ![js135005](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/js135005/32/8219_2.png) [@js135005](https://discourse.julialang.org/u/js135005)\
**Post date:** [June 29, 2017, 6:45pm UTC](https://discourse.julialang.org/t/error-with-new-versions/4544/9 "2017-06-29T18:45:49Z")

</div>

Setting $JULIA\_HOME and adding %JULIA\_HOME% to your system or user path is definitely necessary to run Julia from PowerShell. Of course, you can always code the full executable path in your path variable instead! Using JULIA\_HOME is much cleaner and easier to maintain.

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [June 29, 2017, 11:20pm UTC](https://discourse.julialang.org/t/error-with-new-versions/4544/10 "2017-06-29T23:20:01Z")

</div>

You should never need to set JULIA\_HOME unless you’re doing something custom with embedding. People setting JULIA\_HOME because they wanted to for their own reasons (or mistakenly thought they needed to?) and it causing immediate errors on startup is a very commonly reported problem.

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [June 29, 2017, 11:31pm UTC](https://discourse.julialang.org/t/error-with-new-versions/4544/11 "2017-06-29T23:31:01Z")

</div>

And it’s almost always a bad idea to add Julia’s bin folder permanently to your system path on windows (adding it temporarily only for the lifetime of the julia process is better). Julia’s bin folder has many dependency dll’s like openblas, llvm, libgmp, mpfr, libgit2, etc. Any other program in the world that happens to depend on those same libraries may require slightly different versions or build configurations of them than Julia requires, so adding Julia’s bin folder to your system path could easily break those unrelated programs.

A much safer way of allowing you to use just `julia` to launch a REPL from a powershell prompt would be setting a shell alias in your profile ([Creating EXE Aliases in PowerShell -- Microsoft Certified Professional Magazine Online](https://mcpmag.com/articles/2014/06/10/exe-alias-in-powershell.aspx)). This works nicely on unix too, though since shared libraries and executables are in different folders there’s less of a pollution problem to worry about.

---

<div class="post-metadata">

**Author:** ![js135005](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/js135005/32/8219_2.png) [@js135005](https://discourse.julialang.org/u/js135005)\
**Post date:** [June 30, 2017, 12:23am UTC](https://discourse.julialang.org/t/error-with-new-versions/4544/12 "2017-06-30T00:23:17Z")

</div>

Thank you for the clarification. Not having a fixed setting makes it much easier to run multiple versions. I will definitely change my setup.
