Thursday, 11 March 2010

Compiling BFAST and DNAA in CentOS 5.4

Update finally got it to work.


#prereqs
GNU Autoconf version 2.59
GNU Automake version 1.9.6
GNU Libtool version 1.5.22
also requires bzlib.h found in bzlib-devel (debian name) in CentOS 5.4 it's bzip2-devel-1.0.3-4.el5_2.x86_64.rpm

#bfast prereq
download bfast source
tar zxvf bfast-0.6.3c.tar.gz
sh autogen.sh
./configure
make

#samtools source
download samtools source
tar jxvf samtools-0.1.7a.tar.bz2

#install this for tview use yum
/var/cache/yum/base/packages/ncurses-devel-5.5-24.20060715.x86_64.rpm
/var/cache/yum/base/packages/ncurses-devel-5.5-24.20060715.i386.rpm

cd samtools-0.1.7a
make

git clone  git://dnaa.git.sourceforge.net/gitroot/dnaa/dnaa

#symbolic link to bfast dir in root dir (.. relative to dnaa dir)
cd /home/username/bin/source/dnaa/dnaa
ln -s /home/username/bin/source/bfast-0.6.3c/ bfast
ln -s /home/username/bin/source/samtools/samtools-0.1.7a samtools
cd ..
ln -s /home/username/bin/source/bfast-0.6.3c/ bfast
ln -s /home/username/bin/source/samtools/samtools-0.1.7a samtools

cd /home/username/bin/source/dnaa/dnaa
sh autogen.sh
./configure
make


update: Used checkinstall to create rpm package so its easier for me to uninstall and recompile updates.
with checkinstall 1.6.2 I had to softlink a library

ln -s /usr/local/lib/installwatch.so /usr/local/lib64/installwatch.so


for bfast now the install method is 
tar zxvf bfast-*.tar.gz
cd bfast-*
sh autogen.sh
./configure
make
sudo checkinstall 
rpm -ivv bfast-0.6.4a-1.x86_64.rpm

1 comment:

  1. Dear Kevin,

    Thank you very much. You saved my day. Tested under FEDORA 13, and its working!!

    regards,

    kamal

    ReplyDelete

Datanami, Woe be me