Homebrew.jl icon indicating copy to clipboard operation
Homebrew.jl copied to clipboard

Can't build homebrew: Libdl not defined

Open adamkapor opened this issue 7 years ago • 1 comments

I get the following error on latest master:

julia> Pkg.build("Homebrew")
[ Info: Building Homebrew
┌ Warning: Replacing module `URIParser`
└ @ Base loading.jl:350
┌ Warning: Replacing module `SHA`
└ @ Base loading.jl:350
┌ Warning: Replacing module `Compat`
└ @ Base loading.jl:350
┌ Warning: `search(s::AbstractString, t::AbstractString)` is deprecated, use `findfirst(t, s)` instead.
│   caller = update_env() at util.jl:17
└ @ Homebrew util.jl:17
┌ Error: ------------------------------------------------------------
│ # Build failed for Homebrew
│   exception =
│    LoadError: InitError: UndefVarError: Libdl not defined
│    Stacktrace:
│     [1] update_env() at /Users/adamkapor/.julia/v0.7/Homebrew/src/util.jl:21
│     [2] __init__() at /Users/adamkapor/.julia/v0.7/Homebrew/src/Homebrew.jl:40
│     [3] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:122
│     [4] _require_search_from_serialized(::Symbol, ::String) at ./loading.jl:213
│     [5] _require(::Symbol) at ./loading.jl:418
│     [6] require(::Symbol) at ./loading.jl:333
│     [7] include at ./boot.jl:292 [inlined]
│     [8] include_relative(::Module, ::String) at ./loading.jl:521
│     [9] include at ./sysimg.jl:26 [inlined]
│     [10] include(::String) at ./loading.jl:555
│     [11] top-level scope
│     [12] eval at ./boot.jl:295 [inlined]
│     [13] eval at ./sysimg.jl:71 [inlined]
│     [14] evalfile(::String, ::Array{String,1}) at ./loading.jl:550 (repeats 2 times)
│     [15] #2 at ./none:12 [inlined]
│     [16] cd(::getfield(, Symbol("##2#5")){String}, ::String) at ./file.jl:70
│     [17] (::getfield(, Symbol("##1#3")))(::IOStream) at ./none:11
│     [18] open(::getfield(, Symbol("##1#3")), ::String, ::String) at ./iostream.jl:310
│     [19] top-level scope
│     [20] eval at ./boot.jl:295 [inlined]
│     [21] eval(::Module, ::Expr) at ./sysimg.jl:71
│     [22] process_options(::Base.JLOptions) at ./client.jl:301
│     [23] _start() at ./client.jl:375
│    during initialization of module Homebrew

@staticfloat

adamkapor avatar Jan 17 '18 20:01 adamkapor

https://github.com/JuliaLang/Compat.jl/pull/465 has fixed this if you wanted to open a PR (or I can do it).

kshyatt avatar Jan 20 '18 22:01 kshyatt