nipy / mindboggle

Automated anatomical brain label/shape analysis software (+ website)
http://mindboggle.info
Other
144 stars 54 forks source link

Compilation of vtk module in centos 6.7 #109

Closed ntraut closed 7 years ago

ntraut commented 7 years ago

Hello,

I am trying to compile vtk module in CentOS 6.7 but when I run the make command I get the following error:

-bash-4.1$ make
[  7%] Built target FsSurfaceReader
[ 15%] Built target GradientComputer
[ 23%] Built target MeshAnalyser
[ 30%] Built target PointAreaComputer
[ 38%] Built target Overlap
[ 46%] Built target TravelDepth
[ 53%] Built target VtkFileEditor
make[2]: *** Pas de r?gle pour fabriquer la cible ? /usr/lib/x86_64-linux-gnu/libSM.so ?, n?cessaire pour ? travel_depth/TravelDepthMain ?. Arr?t.
make[1]: *** [travel_depth/CMakeFiles/TravelDepthMain.dir/all] Erreur 2
make: *** [all] Erreur 2

The installer does not find the right emplacement for libSM.so. This is what I get when I run ldconfig:

-bash-4.1$ ldconfig -p | grep libSM.so  
    libSM.so.6 (libc6,x86-64) => /usr/lib64/libSM.so.6
    libSM.so (libc6,x86-64) => /usr/lib64/libSM.so
binarybottle commented 7 years ago

Are you running the installation script (https://github.com/nipy/mindboggle/blob/master/install/install_mindboggle.sh)? There are lines in that script to fix paths to Linux libraries using symbolic links (from http://techtidings.blogspot.com/2012/01/problem-with-libglso-on-64-bit-ubuntu.html). Maybe this will help. But why not just use the mindboggle docker rather than install everything from scratch?

ntraut commented 7 years ago

I need to do this because I am using a cluster without docker and singularity, and the administrator says it is not planned to install them in short term. The trick of just fixing library links was not sufficient for me, I was failing in deeper errors by doing this. The problem was coming from the vtk package from clinicalgraphics which was compiled for Ubuntu and not CentOS. I finally managed to install a good one by compiling it myself following the instructions from https://github.com/menpo/conda-vtk.

Now I think everything is OK for me, thanks for your help.

binarybottle commented 7 years ago

Thank you for your effort, feedback, and for sharing a link to a solution!