I use Julia 1.0 and when I get an error when I try to install JuMP
julia> Pkg.add("JuMP")
Resolving package versions...
Updating `~/.julia/environments/v1.1/Project.toml`
[4076af6c] + JuMP v0.18.2
Updating `~/.julia/environments/v1.1/Manifest.toml`
[4076af6c] + JuMP v0.18.2
[89212889] + ReverseDiffSparse v0.8.2
julia> Pkg.build("JuMP")
Building SpecialFunctions → `~/.julia/packages/SpecialFunctions/KvXoO/deps/build.log`
julia> using JuMP
[ Info: Precompiling JuMP [4076af6c-e467-56ae-b986-b466b2749572]
ERROR: LoadError: LoadError: syntax: invalid "::" syntax
Stacktrace:
[1] include at ./boot.jl:317 [inlined]
[2] include_relative(::Module, ::String) at ./loading.jl:1041
[3] include at ./sysimg.jl:29 [inlined]
[4] include(::String) at /home/sriram/.julia/packages/JuMP/6aWuF/src/JuMP.jl:13
[5] top-level scope at none:0
[6] include at ./boot.jl:317 [inlined]
[7] include_relative(::Module, ::String) at ./loading.jl:1041
[8] include(::Module, ::String) at ./sysimg.jl:29
[9] top-level scope at none:2
[10] eval at ./boot.jl:319 [inlined]
[11] eval(::Expr) at ./client.jl:389
[12] top-level scope at ./none:3
in expression starting at /home/sriram/.julia/packages/JuMP/6aWuF/src/JuMPContainer.jl:18
in expression starting at /home/sriram/.julia/packages/JuMP/6aWuF/src/JuMP.jl:55
ERROR: Failed to precompile JuMP [4076af6c-e467-56ae-b986-b466b2749572] to /home/sriram/.julia/compiled/v1.1/JuMP/DmXqY.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] macro expansion at ./logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1187
[4] macro expansion at ./logging.jl:311 [inlined]
[5] _require(::Base.PkgId) at ./loading.jl:944
[6] require(::Base.PkgId) at ./loading.jl:855
[7] macro expansion at ./logging.jl:311 [inlined]
[8] require(::Module, ::Symbol) at ./loading.jl:837
Any reason why I get this error? How can I resolve this?