How to fix this error (first installation)?

I want to use Julia 0.6 with latest version of Atom/Juno. However, there is a below error during installation.

Starting Julia…
INFO: Precompiling module Atom.
ERROR: LoadError: HttpParser not properly installed. Please run
Pkg.build(“HttpParser”)
Stacktrace:
[1] error(::String, ::String, ::Vararg{String,N} where N) at .\error.jl:30
[2] include_from_node1(::String) at .\loading.jl:576
[3] include(::String) at .\sysimg.jl:14
[4] anonymous at .<missing>:2
while loading C:\Users\Bill.julia\v0.6\HttpParser\src\HttpParser.jl, in expression starting on line 9
ERROR: LoadError: LoadError: Failed to precompile HttpParser to C:\Users\Bill.julia\lib\v0.6\HttpParser.ji.
Stacktrace:
[1] compilecache(::String) at .\loading.jl:710
[2] _require(::Symbol) at .\loading.jl:463
[3] require(::Symbol) at .\loading.jl:405
[4] include_from_node1(::String) at .\loading.jl:576
[5] include(::String) at .\sysimg.jl:14
[6] include_from_node1(::String) at .\loading.jl:576
[7] include(::String) at .\sysimg.jl:14
[8] anonymous at .<missing>:2
while loading C:\Users\Bill.julia\v0.6\HttpServer\src\RequestParser.jl, in expression starting on line 16
while loading C:\Users\Bill.julia\v0.6\HttpServer\src\HttpServer.jl, in expression starting on line 12
ERROR: LoadError: LoadError: Failed to precompile HttpServer to C:\Users\Bill.julia\lib\v0.6\HttpServer.ji.
Stacktrace:
[1] compilecache(::String) at .\loading.jl:710
[2] _require(::Symbol) at .\loading.jl:463
[3] require(::Symbol) at .\loading.jl:405
[4] include_from_node1(::String) at .\loading.jl:576
[5] include(::String) at .\sysimg.jl:14
[6] include_from_node1(::String) at .\loading.jl:576
[7] include(::String) at .\sysimg.jl:14
[8] anonymous at .<missing>:2
while loading C:\Users\Bill.julia\v0.6\Mux\src\server.jl, in expression starting on line 1
while loading C:\Users\Bill.julia\v0.6\Mux\src\Mux.jl, in expression starting on line 25
ERROR: LoadError: LoadError: Failed to precompile Mux to C:\Users\Bill.julia\lib\v0.6\Mux.ji.
Stacktrace:
[1] compilecache(::String) at .\loading.jl:710
[2] _require(::Symbol) at .\loading.jl:463
[3] require(::Symbol) at .\loading.jl:405
[4] include_from_node1(::String) at .\loading.jl:576
[5] include(::String) at .\sysimg.jl:14
[6] include_from_node1(::String) at .\loading.jl:576
[7] include(::String) at .\sysimg.jl:14
[8] anonymous at .<missing>:2
while loading C:\Users\Bill.julia\v0.6\Blink\src\content/content.jl, in expression starting on line 1
while loading C:\Users\Bill.julia\v0.6\Blink\src\Blink.jl, in expression starting on line 9
ERROR: LoadError: Failed to precompile Blink to C:\Users\Bill.julia\lib\v0.6\Blink.ji.
Stacktrace:
[1] compilecache(::String) at .\loading.jl:710
[2] _require(::Symbol) at .\loading.jl:463
[3] require(::Symbol) at .\loading.jl:405
[4] include_from_node1(::String) at .\loading.jl:576
[5] include(::String) at .\sysimg.jl:14
[6] anonymous at .<missing>:2
while loading C:\Users\Bill.julia\v0.6\Atom\src\Atom.jl, in expression starting on line 5
ERROR: LoadError: Failed to precompile Atom to C:\Users\Bill.julia\lib\v0.6\Atom.ji.
Stacktrace:
[1] compilecache(::String) at .\loading.jl:710
[2] _require(::Symbol) at .\loading.jl:497
[3] require(::Symbol) at .\loading.jl:405
[4] include_from_node1(::String) at .\loading.jl:576
[5] include(::String) at .\sysimg.jl:14
[6] process_options(::Base.JLOptions) at .\client.jl:305
[7] _start() at .\client.jl:371
while loading C:\Users\Bill.atom\packages\julia-client\script\boot_repl.jl, in expression starting on line 72

I tried installing HttpParser but got below error.

julia> Pkg.build(“HttpParser”)
INFO: Building HttpParser
Info: Attempting to create directory C:\Users\Bill.julia\v0.6\HttpParser\deps\downloads
Info: Directory C:\Users\Bill.julia\v0.6\HttpParser\deps\downloads already exists
Info: Downloading file https://s3.amazonaws.com/julialang/bin/winnt/extras/libhttp_parser_2_7_1.zip
Exception calling “DownloadFile” with “2” argument(s): “The remote server returned an error: (403) Forbidden.”
At line:1 char:82

  • … pe]::Tls12; (new-object net.webclient).DownloadFile("https://s3.amazo
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:slight_smile: , MethodInvocationException
    • FullyQualifiedErrorId : WebException

=================================================[ ERROR: HttpParser ]==================================================

LoadError: failed process: Process('C:\Windows\System32\WindowsPowerShell\v1.0\powershell' -NoProfile -Command '[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (new-object net.webclient).DownloadFile("https://s3.amazonaws.com/julialang/bin/winnt/extras/libhttp_parser_2_7_1.zip", "C:\Users\Bill\.julia\v0.6\HttpParser\deps\downloads\libhttp_parser_2_7_1.zip")', ProcessExited(1)) [1]
while loading C:\Users\Bill.julia\v0.6\HttpParser\deps\build.jl, in expression starting on line 80

========================================================================================================================

====================================================[ BUILD ERRORS ]====================================================

WARNING: HttpParser had build errors.

  • packages with build errors remain installed in C:\Users\Bill.julia\v0.6
  • build the package(s) and all dependencies with Pkg.build("HttpParser")
  • build a single package by running its deps/build.jl script

========================================================================================================================

Does anyone know how to solve it?

Is there a particular reason why you want to use Julia 0.6 and not 1.0.5 or the current version?
It is probably easier to get the new versions to run, packages are more compatible and faster.

I need to use some package that only work in 0.6.4

It’s unlikely that anyone will be able to debug this - in all likelihood you’d need to try and install the Juno versions that were current at the time of 0.6.4 and therefore compatible with it, but that seems like a lot of effort for potentially little gain.

I think more productively you have two options, depending on how much you need to work with the package you’re interested in:

  1. If you just need it for a one-off computation, just do that in the REPL in 0.6.4 and be done with it

  2. If you plan to rely more heavily on the package and need to integrate it into your development workflow, it might be most useful to fix it up to work with a more current Julia version. Note that 0.6.4 is not that ancient, in the sense that there’s really only been one major release (1.0) since then. In between, you had version 0.7, which basically is 1.0 with deprecation warnings for all the things that changed between 0.6.4 and 1.0. So you can run the package in 0.7, which will then tell you the bits that need changing to make it 1.0 compatible. Once it runs on 1.0 chances are it will run on 1.4 as well, or if it doesn’t only require minor additional tweaks.

1 Like