From ff910765eec75a3d91b0cf708a54490a38fe6aa9 Mon Sep 17 00:00:00 2001 From: Daniel Carrera Date: Thu, 17 Jan 2019 02:07:48 -0500 Subject: [PATCH] Look for libcorbits.so in pathof(CORBITS)/../ In at least some systems, libcorbits.so is built one directory above pathof(CORBITS). --- src/corbits.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corbits.jl b/src/corbits.jl index 7b64614..98c4309 100644 --- a/src/corbits.jl +++ b/src/corbits.jl @@ -6,7 +6,7 @@ if VERSION >= v"0.7.0-" using Pkg using CORBITS #global const LIB_CORBITS = Libdl.find_library(["libcorbits.so"],[".",joinpath(Pkg.devdir(),"ExoplanetsSysSim/"),joinpath(Pkg.devdir(),"CORBITS/"),"/usr/local/lib"]) # WARNING: Assumes can find libcorbits.so - global const LIB_CORBITS = Libdl.find_library(["libcorbits.so"],[".",joinpath(dirname(pathof(ExoplanetsSysSim))),joinpath(dirname(pathof(CORBITS))),"/usr/local/lib"]) # WARNING: Assumes can find libcorbits.so + global const LIB_CORBITS = Libdl.find_library(["libcorbits.so"],[".",joinpath(dirname(pathof(ExoplanetsSysSim))),joinpath(dirname(pathof(CORBITS))),joinpath(dirname(pathof(CORBITS)))*"/../","/usr/local/lib"]) # WARNING: Assumes can find libcorbits.so elseif VERSION >= v"0.4.0-" global const LIB_CORBITS = Libdl.find_library(["libcorbits.so"],[".",joinpath(Pkg.dir(),"ExoplanetsSysSim/"),joinpath(Pkg.dir(),"CORBITS/"),"/usr/local/lib"]) # WARNING: Assumes can find libcorbits.so else