Closed AndreZeug closed 11 months ago
This looks to be an incompatibility of GCC libraries. This issue is described here: https://diplib.org/diplib-docs/building_linux.html#linux_matlab_gcc
Fixing this on a cluster machine might be more difficult, you certainly will need the assistance of an admin. Unless they’ve already installed a version of GCC compatible with MATLAB, and all you need to do is configure the system to use it (module load GCC_10
or whatever). MATLAB R2022a is compatible with GCC 7 through 10. https://www.mathworks.com/content/dam/mathworks/mathworks-dot-com/support/sysreq/files/system-requirements-release-2022a-supported-compilers.pdf
Finally succeed after some testing different modules and strategies
Installing the right way clone the git and crate folders required
cd /project/cnp/
mkdir srcDIPlib
cd srcDIPlib/
module load git
git clone https://github.com/DIPlib/diplib.git
module purge
cd diplib
mkdir target
cd target
mkdir /project/cnp/DIPlib
checking for the right version of modules for compilation:
module avail
module spider CMake
In my case:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CMake:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Description:
CMake, the cross-platform, open-source build system. CMake is a family of tools designed to build, test and package software.
Versions:
CMake/3.11.4-GCCcore-7.3.0
CMake/3.12.1-GCCcore-7.3.0
CMake/3.15.3-GCCcore-8.3.0
CMake/3.18.4-GCCcore-10.2.0
CMake/3.21.1-GCCcore-11.2.0
CMake/3.23.1-GCCcore-11.3.0
The version CMake/3.18.4-GCCcore-10.2.0
did not work in my case
module load CMake/3.15.3-GCCcore-8.3.0 MATLAB
cmake .. -DCMAKE_INSTALL_PREFIX=/project/cnp/DIPlib |& tee -a DIPlip_cmake.log
make -j check |& tee -a DIPlip_make_check.log
make -j install |& tee -a DIPlip_make_install.log
finally I did put /project/cnp/DIPlib/share/DIPimage
to the matlab path and could run matlab
and use dipimage
I'm glad you got it to work!
Thank you for giving the details here, it'll be helpful to others.
Hi I tried to compile DIPimage on a HPC cluster which is configured as a SLURM & MODULE system.
I tried to follow the instructions on Building the DIPlib project on Linux and tried to translate it to the HPC system
INSTALLATION
module use /project/usr/apps/modules/zen2/all # specific command to make more specific modules available
to check for appropriate modules usemodule avail
ormodule spider MATLAB
or so.module load MATLAB CMake GCC git Python # load modules required
I used a specific location
cd /project/cnp/
Building
DIPlip_cmake.log
Please note, in case I load the modules in different order
module load CMake GCC git Python MATLAB
I receive the following error (will be of importance later):make -j check |& tee -a DIPlip_make_check.log
produces some errors which are hopefully marginal DIPlip_make_check.logmake -j install |& tee -a DIPlip_make_install.log
runs smoothly DIPlip_make_install.logTHE PROBLEM running MATLAB and e.g. calling
dipimage
causes the following errorproduces the same error as above. I will ask HPC IT specialists (next year 🥳) if they have a clever idea. But in case someone has experience...
Component DIPlib
System information: