Install Staden on Ubuntu Mavrick

March 9th, 2011

1. Easiest thing to do is create a folder in your home directory called staden and do everything inside there

mkdir ~/staden

cd ~/staden

2. 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

3. 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;

4. 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

5. Configure, Make and install the io_lib package

cd io_lib-1.12.5

./configure

make && sudo make install

6. Configure, Make and install staden

mkdir build.mavrick

cd build.mavrick

../configure

make && 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.
  • Japerl says:

    Thanks for the step by step guide. Was wondering about step 6 though, In which directory should the ‘build.mavrick’ directory be made?
    Cheers

    • tyghe says:

      The build.maverick folder really can be created anywhere(actually you can even skip creating it and just run ./configure within the ~/staden folder), but the easiest place is to create it inside the ~/staden folder

      I hope that helps. Let me know if you need any more help.

  • Japerl says:

    Worked out fine. Thanks

Leave a Reply

You must be logged in to post a comment.