diff options
Diffstat (limited to 'deps.jl')
-rw-r--r-- | deps.jl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/deps.jl b/deps.jl new file mode 100644 index 000000000000..71eeacc74343 --- /dev/null +++ b/deps.jl @@ -0,0 +1,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 |