Compiling Canu

Author:Brant C. Faircloth
Copyright:This documentation is available under a Creative Commons (CC-BY) license.

Steps

  1. Download a source release of canu to a directory like ~/project/src

    wget https://github.com/marbl/canu/archive/v1.8.tar.gz -O canu-v1.8.tar.gz
    
  2. Unzip that sources release and load the gcc 6 module:

    tar -xzvf canu-v1.8.tar.gz
    module load gcc/6.4.0
    
  3. Set the compiler to the correct values:

    export CC=`which gcc`
    export CXX=`which g++`
    
  4. Change to the canu/src directory and compiler

    cd canu/src
    make
    
  5. This places a binary in /project/brant/src/canu-1.8/Linux-amd64/bin/canu to which we can symlink in ~/project/shared/bin:

    cd $HOME/project/shared/bin
    ln -s ../src/canu-1.8/Linux-amd64/bin/canu ./