Entering edit mode
5.2 years ago
M.O.L.S
▴
100
x86_64-apple-darwin13.4.0-clang -c -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -O3 -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe from_samtools.c
clang-4.0: warning: -Wl,-pie: 'linker' input unused [-Wunused-command-line-argument]
clang-4.0: warning: -Wl,-headerpad_max_install_names: 'linker' input unused [-Wunused-command-line-argument]
clang-4.0: warning: -Wl,-dead_strip_dylibs: 'linker' input unused [-Wunused-command-line-argument]
In file included from from_samtools.c:1:
./from_samtools.h:7:10: fatal error: 'htslib/khash_str2int.h' file not found
#include <htslib/khash_str2int.h>
^~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [Makefile:61: from_samtools.o] Error 1
Can anyone help with this error message? I am having trouble downloading some software from Github and when i type make it comes up with this error. I have htslib installed and that file khash_... is in there because i can see it.
Any ideas?
"some software" ? what are you trying to install ?
is it https://github.com/ANGSD/angsd ?? show us all the command lines you typed from the section "Installation"
Yes, this was the software I wanted to download.
All of these commands didn't work to install the angsd, (they only worked to download it):
I also tried...
... which gave the errors originally posted in the question.
I also tried....
changing the directory of the make HTSSRC by specifying where it was.
still didn't work.
... and this didnt work either.
I think this is because the clang 4.0 compiler is the first to be on the scene in recognising something needs to be compiled. The clang++ compiler and the g++ compiler aren't called on for some reason when I execute these commands in the Terminal. The compilers don't use the -W command which might be the most important command to perform linking of sorts. ?!
The only commands that were successful were: compiling the program inside of a bash chunk, in an RMarkdown file, created inside RStudio.
A new R Markdown file was placed inside the angsd_folder folder from github.
output: / The / path / to / Downloads / angsd_folder
output : A list of the header files and c files.
A brand new c++ compiler called c++ , compiled the files into functional angsd executable file.
output : angsd version: 0.931 (htslib: 1.9) build(Oct 27 2989 00:00:07)