Mega2 install error

55 views
Skip to first unread message

Teresa Filshtein

unread,
Dec 19, 2017, 8:20:58 PM12/19/17
to Mega2
Hi Everyone, I am trying to install Mega2 on a linux server. 

I am getting the following errors up installation. Does anyone have any thoughts or suggestions. (fyi I am relatively new to linux) Thank you for any help. My eventual goal is to use Mega2 to work with BGEN files. 

$ ./install.sh 

OS linux


Attempting to compile mega2 because no pre-compiled binary was found for your operating system.

including ./Makedefs_linux

including ./Makedefs_linux failed.  Trying include ./Makedefs_linux.template

make  -C zlib-1.2.8

make[1]: Entering directory `/mnt/speed/glymourlab/Teresa/mega2_v4.9.2_src/srcdir/zlib-1.2.8'

make[1]: Nothing to be done for `go'.

make[1]: Leaving directory `/mnt/speed/glymourlab/Teresa/mega2_v4.9.2_src/srcdir/zlib-1.2.8'

make  -C bgen

make[1]: Entering directory `/mnt/speed/glymourlab/Teresa/mega2_v4.9.2_src/srcdir/bgen'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/mnt/speed/glymourlab/Teresa/mega2_v4.9.2_src/srcdir/bgen'

make  -C lib/sqlite3

make[1]: Entering directory `/mnt/speed/glymourlab/Teresa/mega2_v4.9.2_src/srcdir/lib/sqlite3'

make[1]: Nothing to be done for `all'.

make[1]: Leaving directory `/mnt/speed/glymourlab/Teresa/mega2_v4.9.2_src/srcdir/lib/sqlite3'

make  -C vcftools

make[1]: Entering directory `/mnt/speed/glymourlab/Teresa/mega2_v4.9.2_src/srcdir/vcftools'

make[1]: Nothing to be done for `default'.

make[1]: Leaving directory `/mnt/speed/glymourlab/Teresa/mega2_v4.9.2_src/srcdir/vcftools'

rm -f read_impute_bgen2.o

g++ -Wall -O3   -c -I. -Ibgen/genfile/include -std=c++0x read_impute_bgen2.cpp 

read_impute_bgen2.cpp: In member function ‘virtual void BgenParserGenotypeReadHelper::genotypes_init()’:

read_impute_bgen2.cpp:100: error: no matching function for call to ‘BgenParserGenotypeReadHelper::get_sample_ids(BgenParserGenotypeReadHelper::genotypes_init()::noop)’

make: *** [read_impute_bgen2.o] Error 1

make program exit value 2


ERROR: Compilation of mega2 failed.  Get help


Teresa Filshtein

unread,
Dec 19, 2017, 10:21:41 PM12/19/17
to Mega2
Hi Everyone, I just wanted to post that I figured out what the problem was. The default c++ compiler was not the most up to date one, and I had to make sure to enable the later version. Just figured I'd respond here in case someone else has a similar issue!

Dan Weeks

unread,
Dec 20, 2017, 10:44:19 AM12/20/17
to Mega2
Glad that you were able to figure out the problem so promptly, and thank you for sharing your solution.  Yes, Mega2 currently will not compile with some older versions of the compilers.  As this has caused problems for some where it was difficult for them to update their compiler, we have adjusted the code (currently in Bitbucket) to make it more compatible with older compliers.  

Thank you,
Dan Weeks

Shicheng Guo

unread,
Jul 18, 2018, 11:20:37 AM7/18/18
to Mega2
Which verision is okay for  CentOS 6 or Red Hat 4.4.7-23? 

Thanks. 

Dan Weeks

unread,
Aug 22, 2018, 4:58:28 PM8/22/18
to Mega2
Mega2 compiles OK for us using

g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-16)


on a CentOS Linux release 7.4.1708 machine.

Hope that helps,
Dan Weeks
Reply all
Reply to author
Forward
0 new messages