Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Julia can not find libtiff (R 4.4.0, Julia 1.9.3) when running ResistanceGA in R #245

Open
vladimirovav opened this issue Dec 30, 2024 · 0 comments

Comments

@vladimirovav
Copy link

I’m running a ResistanceGA package in R incorporating work in R and Julia. When I run the jl.prep function it gives me this error. Note it runs fine on my laptop, but when I try to run it in ComputeCanada (remote access computer) it gives me the error, which I’m assuming means that the access to julia works somehow differently :

Error: Error happens in Julia.
InitError: could not load library “/home/varv/.julia/artifacts/4e48910b6d6946bcb2a95632700ecc7e12ff8a9a/lib/libgdal.so”
/cvmfs/soft.computecanada.ca/gentoo/2023/x86-64-v3/usr/lib64/libtiff.so.6: version `LIBTIFF_4.6.1’ not found (required by /home/varv/.julia/artifacts/4e48910b6d6946bcb2a95632700ecc7e12ff8a9a/lib/libgdal.so)
Stacktrace:
[1] dlopen(s::String, flags::UInt32; throw_error::Bool)
@ Base.Libc.Libdl ./libdl.jl:117
[2] dlopen(s::String, flags::UInt32)
@ Base.Libc.Libdl ./libdl.jl:116
[3] macro expansion
@ ~/.julia/packages/JLLWrappers/GfYNv/src/products/library_generators.jl:63 [inlined]
[4] init()
@ GDAL_jll ~/.julia/packages/GDAL_jll/YrNvh/src/wrappers/x86_64-linux-gnu-cxx11.jl:78
[5] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
@ Base ./loading.jl:1115
[6] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any})
@ Base ./loading.
Execution halted
Julia exit.

The code specifically that I’m running is:

jl.inputs ← ResistanceGA::jl.prep( # jl.prep runs in Julia, allows for speed and parallel processing (well with large data, instead of CS.prep) ()
n.Pops = length(sampleBGLoc_NAD83), # n.Pops will be the no. of indiv in spPoints object (4728 bytes)
response = lower(PropSharBG2CM), # extracts the lower triangular part of your genetic distance matrix. Use pairwise genetic distance matrix (3432 bytes)
CS_Point.File = sampleBGLoc_NAD83, # spatial points dataframe - locations of the individuals
parallel = TRUE, # use several cores
cores = 8, # Check your systems core, adjust
JULIA_HOME = JULIA_HOME)# where the Julia binary files are stored

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant