I have installed shark on taurus, one of the big machines used by the Astronomy group at CIAFF, Universidad Autónoma de Madrid. Here I explain the few issued found in the process and how they were solved.

Once I forked and cloned the shark repository locally, I followed the instructions from the documentation, getting the following error after trying make all

make[2]: *** No rule to make target '/usr/lib/libgsl.so', needed by 'libshark.so'.  Stop.
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/sharklib.dir/all' failed
make[1]: *** [CMakeFiles/sharklib.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

So, the problem seemed to be related with the gsl libraries. Rodrigo Tobar helped me investigating the issue.

  • We checked that the required gsl-dev libraries where installed using:
    dpkg-query -s libgsl-dev
  • shark compiles assuming that the gsl libraries are in /usr/lib/libgsl.so. Such a file existed in taurus, so we needed to check if that was the file to compile against. To do so, I listed the files that got installed by the package libgsl-dev using:
    dpkg-query -L libgsl-dev
  • The libgsl-dev package actually installed the required gsl libraries in /usr/lib/x86_64-linux-gnu/libgsl.so. So I had to compile shark with the following command:
    cmake .. -DGSL_ROOT_DIR=/usr/lib/x86_64-linux-gnu/

This time I got the happy:

[100%] Built target shark