Error loading Atom.jl

Hello!
When a type using Atom a have this message:
julia> using Atom
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:569
[3] include(::String) at ./sysimg.jl:14
[4] anonymous at ./:2
while loading /home/rudiney/.julia/v0.6/HttpParser/src/HttpParser.jl, in expression starting on line 9
ERROR: LoadError: LoadError: Failed to precompile HttpParser to /home/rudiney/.julia/lib/v0.6/HttpParser.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:703
[2] _require(::Symbol) at ./loading.jl:456
[3] require(::Symbol) at ./loading.jl:398
[4] include_from_node1(::String) at ./loading.jl:569
[5] include(::String) at ./sysimg.jl:14
[6] include_from_node1(::String) at ./loading.jl:569
[7] include(::String) at ./sysimg.jl:14
[8] anonymous at ./:2
while loading /home/rudiney/.julia/v0.6/HttpServer/src/RequestParser.jl, in expression starting on line 16
while loading /home/rudiney/.julia/v0.6/HttpServer/src/HttpServer.jl, in expression starting on line 12
ERROR: LoadError: LoadError: Failed to precompile HttpServer to /home/rudiney/.julia/lib/v0.6/HttpServer.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:703
[2] _require(::Symbol) at ./loading.jl:456
[3] require(::Symbol) at ./loading.jl:398
[4] include_from_node1(::String) at ./loading.jl:569
[5] include(::String) at ./sysimg.jl:14
[6] include_from_node1(::String) at ./loading.jl:569
[7] include(::String) at ./sysimg.jl:14
[8] anonymous at ./:2
while loading /home/rudiney/.julia/v0.6/Mux/src/server.jl, in expression starting on line 1
while loading /home/rudiney/.julia/v0.6/Mux/src/Mux.jl, in expression starting on line 24
ERROR: LoadError: LoadError: Failed to precompile Mux to /home/rudiney/.julia/lib/v0.6/Mux.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:703
[2] _require(::Symbol) at ./loading.jl:456
[3] require(::Symbol) at ./loading.jl:398
[4] include_from_node1(::String) at ./loading.jl:569
[5] include(::String) at ./sysimg.jl:14
[6] include_from_node1(::String) at ./loading.jl:569
[7] include(::String) at ./sysimg.jl:14
[8] anonymous at ./:2
while loading /home/rudiney/.julia/v0.6/Blink/src/content/content.jl, in expression starting on line 1
while loading /home/rudiney/.julia/v0.6/Blink/src/Blink.jl, in expression starting on line 9
ERROR: LoadError: Failed to precompile Blink to /home/rudiney/.julia/lib/v0.6/Blink.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:703
[2] _require(::Symbol) at ./loading.jl:456
[3] require(::Symbol) at ./loading.jl:398
[4] include_from_node1(::String) at ./loading.jl:569
[5] include(::String) at ./sysimg.jl:14
[6] anonymous at ./:2
while loading /home/rudiney/.julia/v0.6/Atom/src/Atom.jl, in expression starting on line 5
ERROR: Failed to precompile Atom to /home/rudiney/.julia/lib/v0.6/Atom.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:703
[2] _require(::Symbol) at ./loading.jl:490
[3] require(::Symbol) at ./loading.jl:398

Have you tried Pkg.build("HttpParser") as suggested in the error message?

Yes but I receive that message:

julia> Pkg.build(“HttpParser”)
INFO: Building HttpParser
INFO: Attempting to Create directory /home/rudiney/.julia/v0.6/HttpParser/deps/downloads
INFO: Directory /home/rudiney/.julia/v0.6/HttpParser/deps/downloads already created
INFO: Attempting to Create directory /home/rudiney/.julia/v0.6/HttpParser/deps/downloads
INFO: Directory /home/rudiney/.julia/v0.6/HttpParser/deps/downloads already created
INFO: Downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
INFO: Done downloading file https://github.com/nodejs/http-parser/archive/v2.7.1.zip
INFO: Attempting to Create directory /home/rudiney/.julia/v0.6/HttpParser/deps
INFO: Directory /home/rudiney/.julia/v0.6/HttpParser/deps already created
INFO: Path /home/rudiney/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1 already created
INFO: Attempting to Create directory /home/rudiney/.julia/v0.6/HttpParser/deps/usr/lib
INFO: Directory /home/rudiney/.julia/v0.6/HttpParser/deps/usr/lib already created
INFO: Changing Directory to /home/rudiney/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing Directory to /home/rudiney/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing Directory to /home/rudiney/.julia/v0.6/HttpParser/deps/src
INFO: Attempting to Create directory /home/rudiney/.julia/v0.6/HttpParser/deps/usr/lib
INFO: Directory /home/rudiney/.julia/v0.6/HttpParser/deps/usr/lib already created
INFO: Changing Directory to /home/rudiney/.julia/v0.6/HttpParser/deps/src
http_parser.c: In function ‘http_parser_execute’:
http_parser.c:1817:31: error: this statement may fall through [-Werror=implicit-fallthrough=]
parser->upgrade = 1;
~~~~~~~~~~~~^
http_parser.c:1819:13: note: here
case 1:
^
~
http_parser.c: In function ‘http_parser_parse_url’:
http_parser.c:2376:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
found_at = 1;
~~~~~^
http_parser.c:2379:7: note: here
case s_req_server:
^
~
cc1: all warnings being treated as errors
make: *** [libhttp_parser.o] Error 1
============================================================[ ERROR: HttpParser ]=============================================================

LoadError: failed process: Process(setenv(make -j8 -C http-parser-2.7.1 library,String[“PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games”, “QT_ACCESSIBILITY=1”, “GS_LIB=/home/rudiney/.fonts”, “KONSOLE_DBUS_SESSION=/Sessions/1”, “DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus”, “KONSOLE_PROFILE_NAME=”, “XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0”, “XDG_SESSION_DESKTOP=KDE”, “SSH_AGENT_PID=1066”, “XDG_SESSION_TYPE=x11”, “USER=rudiney”, “PAM_KWALLET5_LOGIN=/tmp/kwallet5_rudiney.socket”, “XDG_DATA_DIRS=/usr/share:/usr/share:/usr/local/share”, “SHELL=/bin/bash”, “COLORFGBG=15;0”, “XDG_SEAT=seat0”, “XAUTHORITY=/tmp/xauth-1000-_0”, “GTK_MODULES=gail:atk-bridge”, “SESSION_MANAGER=local/pampa:@/tmp/.ICE-unix/1130,unix/pampa:/tmp/.ICE-unix/1130”, “XCURSOR_THEME=breeze_cursors”, “HOME=/home/rudiney”, “TERM=xterm-256color”, “S_COLORS=auto”, “COLORTERM=truecolor”, “KONSOLE_DBUS_WINDOW=/Windows/1”, “XDG_CURRENT_DESKTOP=KDE”, “LANG=pt_BR.UTF-8”, “LOGNAME=rudiney”, “SHLVL=0”, “XDG_RUNTIME_DIR=/run/user/1000”, “DESKTOP_SESSION=/usr/share/xsessions/plasma”, “SSH_AUTH_SOCK=/tmp/ssh-QMhNhVm2x9RF/agent.971”, “KDE_SESSION_UID=1000”, “PROFILEHOME=”, “GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1”, “PWD=/home/rudiney”, “QT_AUTO_SCREEN_SCALE_FACTOR=0”, “DISPLAY=:0”, “XDG_SESSION_CLASS=user”, “LANGUAGE=pt_BR:pt:en”, “SONAME=libhttp_parser.so”, “GTK_RC_FILES=/etc/gtk/gtkrc:/home/rudiney/.gtkrc:/home/rudiney/.config/gtkrc”, “KONSOLE_DBUS_SERVICE=:1.70”, “XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1”, “WINDOWID=96468998”, “XDG_VTNR=7”, “KDE_FULL_SESSION=true”, “XDG_SESSION_ID=4”, “GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/rudiney/.gtkrc-2.0:/home/rudiney/.config/gtkrc-2.0”, “QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1”, “SHELL_SESSION_ID=7503ef34aa9d4cb68328a4e09a247c20”, “OPENBLAS_MAIN_FREE=1”, “KDE_MULTIHEAD=false”, “KDE_SESSION_VERSION=5”]), ProcessExited(2)) [2]
while loading /home/rudiney/.julia/v0.6/HttpParser/deps/build.jl, in expression starting on line 71

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

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

WARNING: HttpParser had build errors.

  • packages with build errors remain installed in /home/rudiney/.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

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

julia>

Hey hi,

Anyone got a solution for this, I get the same error when I am trying to install Julia in atom.

Have you tried opening Julia in a command line REPL and then trying Pkg.build("HttpParser") there instead of inside Julia? This worked for my friend.

@Samudra have a look at
https://github.com/JuliaWeb/HttpParser.jl/issues/75#issuecomment-325510845

That worked for me.