Nextomics / nextsv

MIT License
33 stars 8 forks source link

NextSV3 can't install #18

Open weriss opened 1 year ago

weriss commented 1 year ago

I'm installing NextSV3, but I'm encountering some errors:

I have installed these minimap2 =2.22 CuteSV=2.0.1 samtools=1.9 gcc=4.8.2 sniffles=2.0.7

My Syetem: Ubuntu 18

I have cloned the repository using "git clone --recursive https://github.com/Nextomics/nextsv.git" And already "cd nextsv/"

but when I "sh build.sh", I get some error

In file included from longreadqc.c:1:0: /usr/include/stdio.h:27:36: fatal error: bits/libc-header-start.h: No such file or directory

include <bits/libc-header-start.h>

                                ^

compilation terminated. In file included from filter_fq.c:1:0: /usr/include/stdio.h:27:36: fatal error: bits/libc-header-start.h: No such file or directory

include <bits/libc-header-start.h>

                                ^

compilation terminated. In file included from qc_bam.c:1:0: /usr/include/stdio.h:27:36: fatal error: bits/libc-header-start.h: No such file or directory

include <bits/libc-header-start.h>

                                ^

compilation terminated. In file included from qc_fq.c:1:0: /usr/include/stdio.h:27:36: fatal error: bits/libc-header-start.h: No such file or directory

include <bits/libc-header-start.h>

                                ^

compilation terminated. In file included from qc_fa.c:1:0: /usr/include/stdio.h:27:36: fatal error: bits/libc-header-start.h: No such file or directory

include <bits/libc-header-start.h>

                                ^

compilation terminated. In file included from tk.c:1:0: /usr/include/stdio.h:27:36: fatal error: bits/libc-header-start.h: No such file or directory

include <bits/libc-header-start.h>

                                ^

compilation terminated. cp: cannot stat 'longreadqc': No such file or directory gcc -O3 -Wall -Wextra -Wno-unknown-pragmas -c -o pigz.o pigz.c In file included from pigz.c:328:0: /usr/include/stdio.h:27:36: fatal error: bits/libc-header-start.h: No such file or directory

include <bits/libc-header-start.h>

                                ^

compilation terminated. make: *** [: pigz.o] Error 1 cp: cannot stat 'pigz': No such file or directory cp: cannot stat 'unpigz': No such file or directory

I have tried to install pigz in conda, but it doesn't solved.

fangli80 commented 1 year ago

It looks like your system is lacking some header files. Please try sudo apt install build-essential