summarylogtreecommitdiffstats
path: root/deps.jl
blob: 71eeacc74343660ce3ac9fd948e656b55404691b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

if isdefined((@static VERSION < v"0.7.0-DEV.484" ? current_module() : @__MODULE__), :Compat)
    import Compat.Libdl
elseif VERSION >= v"0.7.0-DEV.3382"
    import Libdl
end
const libarpack = joinpath(dirname(@__FILE__), "usr/lib/libarpack.so")
function check_deps()
    global libarpack
    if !isfile(libarpack)
        error("$(libarpack) does not exist, Please re-run Pkg.build(\"Arpack\"), and restart Julia.")
    end

    if Libdl.dlopen_e(libarpack) in (C_NULL, nothing)
        error("$(libarpack) cannot be opened, Please re-run Pkg.build(\"Arpack\"), and restart Julia.")
    end

end