Skip to content

SLURM: libDIP.so: cannot open shared object file: No such file or directory #186

@AndreZeug

Description

@AndreZeug

Hi, I managed to install DIPimage 3.5.1 for MATLAB on a HPC Cluster

I can use DIPimage functionality within MATLAB since I added the path to the libDIP.so to the system path
either within MATLAB by putting setenv('PATH',['/project/cnp/DIPlib/lib',':',getenv('PATH')]); into the startup.m
or by adding the path to the system path.

However, when I run DIPimage commands in a MATLAB batch job using the Parallel Computing Toolbox, I receive the following ERROR
2024-12-13 01:18:25: 1105442_createMovieXYT(results/images/202_Ch2_FRaw) CreateStart 01:18:06 (12.708 s) finished, JobStart 01:18:25 (00:00:03.063 hour with ERROR: Invalid MEX-file '/tmp/ca72-4747-af6e-954e/a/tpf9fd06bd_15cf_4937_9d8e_962248c5dd7e/@dip_image/private/dip_projection.mexa64': libDIP.so: cannot open shared object file: No such file or directory )

The command I use in the batch job is probably something simple as int99 = percentile(dip_image(d),99.99)
If I run the same function inside MATLAB, but not in a batch job, it works.

probably I did define the system path not correctly?
Or, is it some other problem?

System information:

ver
---------------------------------------------------------------------------------------------------------------
MATLAB Version: 9.14.0.2337262 (R2023a) Update 5
MATLAB License Number: 40567690
Operating System: Linux 5.14.0-427.31.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 14 16:15:25 UTC 2024 x86_64
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
---------------------------------------------------------------------------------------------------------------
MATLAB                                                Version 9.14        (R2023a)
DIPimage toolbox for quantitative image analysis      Version 3.5.1               

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions