jianyangqt / gcta

GCTA software
GNU General Public License v3.0
73 stars 23 forks source link

CMake error during intall GCTA in ubuntu 20.04 via gcta_build_steps_linux.sh #37

Open ML1990-Lab opened 1 year ago

ML1990-Lab commented 1 year ago

Dear developer,

I would like to utilize your tool to estimate residual GWAS association statistics, but during the installation of GCTA in my linux machine (Linux Lab-PC 5.15.0-67-generic #74~20.04.1-Ubuntu SMP Wed Feb 22 14:52:34 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux) I encountered this error at the final step of the "gcta_build_steps_linux.sh" script found at gcta/docs/build/gcta_build_steps_linux.sh:

lane101 cmake.. Linux and Mac are supported. Compiling by GCC9.4.0 -- ARCHITECTURE:x86_64 SSE build Setting to release build CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: lib_core linked by target "gcta64" in directory /home/mattia/gcta_build/gcta lib_lp64 linked by target "gcta64" in directory /home/mattia/gcta_build/gcta lib_thread linked by target "gcta64" in directory /home/mattia/gcta_build/gcta

-- Configuring incomplete, errors occurred! See also "/home/mattia/gcta_build/gcta/build/CMakeFiles/CMakeOutput.log". make: *** No targets specified and no makefile found. Stop.

Here is the content of the CMakeOutput.log:

The system is: Linux - 5.15.0-67-generic - x86_64 Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiler: /usr/bin/cc Build flags: Id flags:

The output was: 0

How can I solve this error? I am not an expert in Linux and therefore any help is extremely appreciated. BW, Mattia

CreRecombinase commented 1 year ago

Have you tried using the static binary? You won't have to worry about learning CMake.

hailingfang commented 1 year ago

lib_core lib_lp64 is a part of mkl. The error indicate that those libraries not found. I do not suggest run "gcta_build_steps_linux.sh" as a script, you need run command one by one manually, and you may not install mkl successfully. If you just want use gcta, you only need download binary here https://yanglab.westlake.edu.cn/software/gcta/#Download