FORUMError ‘make: *** No rule to make target ‘../.git/HEAD’, needed by ‘GitVersion.h’. Stop.’ while installing vcf2geno
sjossey asked 1 year ago

I am trying to install vcf2geno from
I downloaded the zipfile: and unzipped it.
modules loaded gcc/5.4.0 and clang/3.9.0
$ cd vcf2geno-master
$ cd src/
$ make
it runs for 1 minute or so with no errors and ends with the following error
make[1]: Entering directory ‘/home/sjossey/vcf2geno-master/src/libVcf’
g++ -c -O4 -DNDEBUG -std=c++0x -D__STDC_LIMIT_MACROS -I. -I../base -I../third/tabix PeopleSet.cpp
g++ -c -O4 -DNDEBUG -std=c++0x -D__STDC_LIMIT_MACROS -I. -I../base -I../third/tabix VCFUtil.cpp
g++ -c -O4 -DNDEBUG -std=c++0x -D__STDC_LIMIT_MACROS -I. -I../base -I../third/tabix PlinkInputFile.cpp
g++ -c -O4 -DNDEBUG -std=c++0x -D__STDC_LIMIT_MACROS -I. -I../base -I../third/tabix PlinkOutputFile.cpp
g++ -c -O4 -DNDEBUG -std=c++0x -D__STDC_LIMIT_MACROS -I. -I../base -I../third/tabix VCFInfo.cpp
g++ -c -O4 -DNDEBUG -std=c++0x -D__STDC_LIMIT_MACROS -I. -I../base -I../third/tabix VCFInputFile.cpp
g++ -c -O4 -DNDEBUG -std=c++0x -D__STDC_LIMIT_MACROS -I. -I../base -I../third/tabix VCFIndividual.cpp
g++ -c -O4 -DNDEBUG -std=c++0x -D__STDC_LIMIT_MACROS -I. -I../base -I../third/tabix SiteSet.cpp
g++ -c -O4 -DNDEBUG -std=c++0x -D__STDC_LIMIT_MACROS -I. -I../base -I../third/tabix VCFHeader.cpp
ar rcs lib-vcf.a PeopleSet.o VCFUtil.o PlinkInputFile.o PlinkOutputFile.o VCFInfo.o VCFInputFile.o VCFIndividual.o SiteSet.o VCFHeader.o
make[1]: Leaving directory ‘/home/sjossey/vcf2geno-master/src/libVcf’
make: *** No rule to make target ‘../.git/HEAD’, needed by ‘GitVersion.h’. Stop.
Hope someone can help figure it out!


1 Answers
Best Answer
jrosner Staff answered 1 year ago

Hi sjossey,
rather than download and unpacking the zip file, try cloning the git repository directly using:

git clone


sjossey replied 1 year ago

It has installed OK with the git clone

Thank you very much!