This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Problems With Installing Joinx On Centos6.

Hi there. I was trying to install MuSiC suit following Installation Of The Music Suite On Unsupported Linux Distributions. But I stuck in compiling and installing joinx. The dependencies should not be a problem. But the following command does not work out.

cmake joinx_source_dir -DBOOST_ROOT=boost_dir -DBoost_NO_SYSTEM_PATHS=on -DCMAKE_INSTALL_PREFIX=/usr/local/joinx

And I got the following error message:

CMake Error at CMakeLists.txt:72 (add_projects):
  Unknown CMake command "add_projects".

I don't know how CMake works. It seems "add_projects" is not a valid command in CMake, and I could not find any information about "add_projects". What was that exactly?

music

1 answer

Included as part of joinx is the build-common set of cmake helpers (add_projects is part of that). Since this is a git submodule, it is likely you didn't obtain the files and it contains an empty directory.

There are two possible remedies.

  1. Use git to retrieve the build-common code by either redoing your clone using the recursive option git clone --recursive git@github.com:genome/joinx.git or using git submodule update --init build-common from within the main joinx directory.
  2. Download the build-common code from here: https://github.com/genome/build-common and put those files into the empty build-common directory in your joinx directory.

Problems solved. Thank you. I tried git submodule update --init build-common, and it works.

Log in to answer this question.