Thursday, July 19, 2007

MrBayes Installation

To provide a service in Computation Grid I decided to install MrBayes.

The home of MrBayes is http://www.mrbayes.net/

The latest version is 3.1.2. In Linux environment this package should be compiled. First attempt to compile was unsuccessful with errors:

bayes.c:45:31: readline/readline.h: No such file or directory

bayes.c:46:30: readline/history.h: No such file or directory

MrBayes manual says:
Depending on which platform/distribution the compilation is being performed on, it may be necessary to install relevent development libraries to enable compilation. Users of Ubuntu 5.10 (Breezy Badger), for instance, may need to install the either the libreadline4-dev or libreadline5-dev package to provide linking during compilation to GNU readline functionality.
The first try to install libreadline5-dev requires to issue 'apt-get install -f' without any package to update system. After this command I could to install libreadline5-dev by:

'apt-get install -f libreadline5-dev'

Then compilation of MrBayes performed well. Now I think I need to install lam-mpi package to make MrBayes mpi compatible. Currently no mpi packages are install on my head node.

1 comment:

Pengcheng Yang said...

Thanks for your explanation for MrBayes installation!