building bcftools: curl/curl.h: No such file or directory
2
0
Entering edit mode
3.2 years ago
순연 • 0

I use to putty

git clone --recurse-submodules git://github.com/samtools/htslib.git
git clone git://github.com/samtools/bcftools.git
cd bcftools

make <-The following error occurs in this area.

hfile_libcurl.c:47:10: fatal error: curl/curl.h: No such file or directory
   47 | #include <curl/curl.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:164: hfile_libcurl.o] Error 1
make[1]: Leaving directory '/home/kang/project/htslib'
make: *** [../htslib/htslib.mk:159: ../htslib/hts-object-files] Error 2 

Do you know how to solve this error?

bcftools • 5.4k views
ADD COMMENT
3
Entering edit mode
3.2 years ago

As noted in the instructions in HTSlib's INSTALL (emphasis added):

The ./configure command checks your build environment and allows various optional functionality to be enabled. If you don't want to select any optional functionality, you may wish to omit configure and just type make; make install as for previous versions of HTSlib. However if the build fails you should run ./configure as it can diagnose the common reasons for build failures.

You have used just make and omitted running configure. It is strongly recommended to run configure, and in this case the configure script will detect the absence of curl/curl.h and report it along with details of how to resolve the problem on several common platforms.

ADD COMMENT
0
Entering edit mode
3.2 years ago

curl/curl.h: No such file or directory

install curl dev https://askubuntu.com/questions/78183

ADD COMMENT

Login before adding your answer.

Traffic: 1960 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6