Skip to content

Instantly share code, notes, and snippets.

@indrayam
indrayam / tmux_build_from_source_ubuntu.sh
Created October 9, 2017 15:51
Install latest version of tmux in Ubuntu 16.04
# Steps to build and install tmux from source on Ubuntu.
# Takes < 25 seconds on EC2 env [even on a low-end config instance].
VERSION=2.5
sudo apt-get -y remove tmux
sudo apt-get -y install wget tar libevent-dev libncurses-dev
wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz
tar xf tmux-${VERSION}.tar.gz
rm -f tmux-${VERSION}.tar.gz
cd tmux-${VERSION}
./configure
  • Do a local install of petsc.

  • the configuration options of petsc are:

  • CUDA:

    ./configure --download-eigen=/home/kgk2/pack/eigen-3.3.3.tgz --with-fortran-bindings=0 --download-chaco --download-metis --download-parmetis --download-scalapack --download-hypre --download-mumps --download-netcdf --download-hdf5=https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6.tar.bz2 --download-pnetcdf --download-exodusii --download-fblaslapack --with-cuda=1 --with-cuda-dir=/home/kgk2/pack/cuda --download-zlib --with-cudac=nvcc
    
  • ViennaCL:

    ./configure --download-eigen=/home/kgk2/pack/eigen-3.3.3.tgz --with-fortran-bindings=0 --download-chaco --download-metis --download-parmetis --download-scalapack --download-hypre --download-mumps --download-netcdf --download-hdf5=https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6.tar.bz2 --download-pnetcdf --download-exodusii --download-fblaslapack --download-zlib --with-viennacl=1 --download-viennacl