HttpParser installation problem


#1

Hi,

Atom is asking me to install HttpParser package with Pkg.build(“HttpParser”) command but I get this error :

julia> Pkg.build("HttpParser")
INFO: Building HttpParser
INFO: Attempting to Create directory /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps/downloads
INFO: Directory /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps/downloads already created
INFO: Attempting to Create directory /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps/downloads
INFO: Directory /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/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 /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps
INFO: Directory /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps already created
INFO: Path /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps/src/http-parser-2.7.1 already created
INFO: Attempting to Create directory /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps/usr/lib
INFO: Directory /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps/usr/lib already created
INFO: Changing Directory to /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing Directory to /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps/src/http-parser-2.7.1
INFO: Changing Directory to /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps/src
INFO: Attempting to Create directory /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps/usr/lib
INFO: Directory /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps/usr/lib already created
INFO: Changing Directory to /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps/src
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
=======================================================================[ ERROR: HttpParser ]========================================================================

LoadError: failed process: Process(setenv(`make -j8 -C http-parser-2.7.1 library`,String["XPC_FLAGS=0x0","PYTHON=/usr/bin/python","PATH=/Applications/JuliaPro-0.5.0.5.app/Contents/Resources/julia/Contents/Resources/julia/bin:/Applications/JuliaPro-0.5.0.5.app/Contents/Resources/julia/Contents/Resources/julia/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Library/TeX/texbin:/Users/Adeline/Applications/IBM/ILOG/CPLEX_Studio127/cplex/bin/x86-64_osx:/Applications/JuliaPro-0.5.0.5.app/Contents/Resources/julia/Contents/Resources/julia/bin/","PWD=/Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5","JULIA_PKGDIR=/Applications/JuliaPro-0.5.0.5.app/Contents/Resources/julia/Contents/Resources/julia/../../../../pkgs-0.5.0.5","DISPLAY=/private/tmp/com.apple.launchd.SFiOFOoR3G/org.macosforge.xquartz:0","XPC_SERVICE_NAME=0","TERM_PROGRAM=Apple_Terminal","JUPYTER=/Users/Adeline/Library/Python/2.7/bin/jupyter","SHELL=/bin/bash","__CF_USER_TEXT_ENCODING=0x1F9:0x0:0x1","LD_LIBRARY_PATH=/Users/Adeline/Applications/IBM/ILOG/CPLEX_Studio127/cplex/bin/x86-64_osx","DYLD_LIBRARY_PATH=/Users/Adeline/Applications/IBM/ILOG/CPLEX_Studio127/cplex/bin/x86-64_osx","SONAME=libhttp_parser.dylib","TMPDIR=/var/folders/8b/7s2_86892813214t4n2g454m0000gs/T/","TK_LIBRARY=/System/Library/Frameworks/Tk.framework/Versions/8.5/Resources/Scripts","FONTCONFIG_PATH=/Applications/JuliaPro-0.5.0.5.app/Contents/Resources/julia/Contents/Resources/julia/etc/fonts","LANG=fr_FR.UTF-8","SHLVL=1","LOGNAME=Adeline","OLDPWD=/Users/Adeline","TERM_SESSION_ID=D404120C-6DE5-4572-BAE1-EC740B82CC88","SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.VZRMaFQpz1/Listeners","_=/Applications/JuliaPro-0.5.0.5.app/Contents/Resources/julia/Contents/Resources/julia/bin/julia","GADFLY_THEME=dark","Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.7XUGN6hSyh/Render","USER=Adeline","TERM=xterm-256color","HOME=/Users/Adeline","TERM_PROGRAM_VERSION=388.1","OPENBLAS_MAIN_FREE=1"]), ProcessExited(1)) [1]
while loading /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5/HttpParser/deps/build.jl, in expression starting on line 71

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

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

WARNING: HttpParser had build errors.

 - packages with build errors remain installed in /Applications/JuliaPro-0.5.0.5.app/Contents/Resources/pkgs-0.5.0.5/v0.5
 - build the package(s) and all dependencies with `Pkg.build("HttpParser")`
 - build a single package by running its `deps/build.jl` script

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



Here is my Pkg.status() : 

julia> Pkg.status()

4 required packages:
 - Atom                          0.5.10
 - CPLEX                         0.2.6
 - HttpParser                    0.2.0
 - JuMP                          0.16.2
52 additional packages:
 - ASTInterpreter                0.0.4
 - AbstractTrees                 0.0.4
 - ArgParse                      0.5.0
 - BinDeps                       0.4.7
 - Blink                         0.5.2
 - COFF                          0.0.2
 - CRC                           1.2.0
 - Calculus                      0.2.2
 - CodeTools                     0.4.5
 - Codecs                        0.3.0
 - ColorTypes                    0.4.1
 - Colors                        0.7.3
 - Compat                        0.24.0
 - DWARF                         0.1.0
 - DataStructures                0.5.3
 - DiffBase                      0.1.0
 - ELF                           0.1.0
 - FileIO                        0.3.1
 - FixedPointNumbers             0.3.7
 - ForwardDiff                   0.4.2
 - Gallium                       0.0.4
 - Hiccup                        0.1.1
 - Homebrew                      0.5.6
 - HttpCommon                    0.2.7
 - HttpServer                    0.2.0
 - JSON                          0.10.0
 - JuliaParser                   0.7.4
 - Juno                          0.2.7
 - LNR                           0.0.2
 - Lazy                          0.11.6
 - MachO                         0.0.4
 - MacroTools                    0.3.6
 - MathProgBase                  0.6.4
 - MbedTLS                       0.4.5
 - Media                         0.2.7
 - Mustache                      0.1.4
 - Mux                           0.2.3
 - NaNMath                       0.2.4
 - ObjFileBase                   0.0.4
 - Reactive                      0.4.1
 - Reexport                      0.0.3
 - Requires                      0.3.0
 - ReverseDiffSparse             0.7.2
 - SHA                           0.3.2
 - SpecialFunctions              0.1.1
 - StructIO                      0.0.2
 - TerminalUI                    0.0.2
 - TextWrap                      0.2.0
 - Tokenize                      0.1.6
 - URIParser                     0.1.8
 - VT100                         0.1.0
 - WebSockets                    0.2.1

Can anyone help me with this issue ?


#2

Try running xcode-select --install, see if that helps


#3

That solved the problem, thanks!