Install Staden on Ubuntu Mavrick

09 Mar 2011

Few things to note before we begin.

  • This guide assumes you are using Ubuntu 10.04 LTS Maverick. It may work under other versions, but only tested in 10.04
  • The versions of staden and io_lib that were used are
  • staden-2.0.0b9
  • io_lib-1.12.5
  1. Easiest thing to do is create a folder in your home directory called staden and do everything inside there

mkdir ~/staden

cd ~/staden

  1. Download both staden and the staden-iolib packages from here. I use wget but you can do it however you want. Just make sure to save them to ~/staden

  2. Upack the two files. You should have one that is something like staden-2.0.0b7-src.tar.gz and the other is io_lib-1.12.5.tar.gz

for file in `ls *.gz`; do tar xzvf $file; done;

  1. Now we need to setup your system so it has the prerequisites for compiling as well as for staden

sudo apt-get install tclx8.4 tclx8.4-dev tk8.4 tk8.4-dev zlib1g-dev liblzma-dev libpng12-dev tklib itcl3 itcl3-dev iwidgets4 itk3 itk3-dev build-essential libcdk5-dev libcurl4-gnutls-dev

sudo ln -s /usr/bin/make /usr/bin/gmake

  1. Configure, Make and install the io_lib package

cd io_lib-1.12.5

./configure

make && sudo make install

  1. Configure, Make and install staden

cd ../

cd staden-2.0.0bd-src

mkdir build.mavrick

cd build.mavrick

../configure

make && sudo make install

That is is. The staden package should now be installed.

One thing to note is that if you need samtools you will need to configure, build and make it prior to step 6 above

[1] Samtools is only needed by tg_index to build Gap5 databases from bam format files. Note that if used it must be built as a relocatable library by adding -fPIC to the CFLAGS in the samtools Makefile.
«« Previous Post Next Post »»