odelaneau / shapeit4

Segmented HAPlotype Estimation and Imputation Tool
MIT License
89 stars 17 forks source link

unable to install shapeit #12

Open dhwani2410 opened 4 years ago

dhwani2410 commented 4 years ago

/home/dhwani/Documents/Phasing/extra_softwares/htslib-1.10.2/hfile_libcurl.c:297: undefined reference to `curl_global_cleanup' collect2: error: ld returned 1 exit status makefile:46: recipe for target 'bin/shapeit4' failed make: *** [bin/shapeit4] Error 1

jaredo commented 4 years ago

htslib is expecting -lcurl which is not in the shapeit makefile.

You could run ./configure --disable-libcurl before making htslib or add -lcurl to the shapeit makefile.

thierrygrange commented 4 years ago

For my computer, it was not sufficient to add -lcurl to the -DYN_LIBS line in the makefile, I also had to add -lcrypto