Installation of rnpletal on Ubuntu

(Courtesy of Luis Lehner, Perimeter Institute)

Install software prerequisites via apt-get

  1. Install the following packages; if prompted Y/N enter "Y": (if prompted Y/n just enter "Y")

    sudo apt-get install gfortran
    sudo apt-get install flex
    sudo apt-get install bison
    sudo apt-get install xutils-dev
    sudo apt-get install mesa-common-dev
    sudo apt-get install libglu1-mesa-dev
    sudo apt-get install mesa-utils
    sudo apt-get install libjpeg62
    sudo apt-get install libjpeg62-dev
    sudo apt-get install libforms-dev
    sudo apt-get install libformsgl2
    sudo apt-get install libforms-bin
    sudo apt-get install libxext-dev
    sudo apt-get install libtiff-dev
    sudo apt-get install libtiff-opengl
    sudo apt-get install xfstt
    sudo apt-get install t1-xfree86-nonfree
    sudo apt-get install ttf-xfree86-nonfree
    sudo apt-get install ttf-xfree86-nonfree-syriac
    sudo apt-get install xfonts-75dpi
    sudo apt-get install xfonts-100dpi
    sudo apt-get install xfonts-100dpi-transcoded
    sudo apt-get install xfonts-75dpi-transcoded
    

Install ffmpeg

  1. Install ffmpeg using the instructions HERE

Install Helvetica fonts

  1. Download Helvetica.ttf.gz and install fonts

    gunzip Helvetica.ttf.gz 
    sudo mkdir /usr/share/fonts/truetype/myfonts
    sudo mv Helvetica.ttf /usr/share/fonts/truetype/myfonts/.
    sudo fc-cache -f -v /usr/share/fonts/truetype/myfonts/
    
  2. Reboot

    reboot
    

Install rnpetal

This assumes that you will

  1. Download the download the distribution tarballs to /tmp
  2. Install the software in /usr/local

Otherwise, change /tmp and/or /usr/local in the following appropriately.

cd /tmp
wget ftp://laplace.physics.ubc.ca/pub/rnpletal/rnpletal.tar.gz
tar zxf rnpletal.tar.gz
wget ftp://laplace.physics.ubc.ca/pub/xforms-1.0/xforms-1.0.tar.gz
tar zxf xforms-1.0.tar.gz
wget ftp://laplace.physics.ubc.ca/pub/xvs/xvs.tar.gz
tar zxf xvs.tar.gz
wget ftp://laplace.physics.ubc.ca/pub/DV/DV.tar.gz
tar zxf DV.tar.gz

export F77=gfortran

cd /tmp
cd rnpletal
sudo ./Install.gnu /usr/local

cd /tmp
cd xforms-1.0
sudo xmkmf -a
sudo make install

# Start a sudo session

sudo -i

cd /tmp
export CCF77LIBS="-lgfortran -lm"
export F77=gfortran
export LIB_PATHS="/usr/lib/x86_64-linux-gnu /usr/lib32"
cd xvs
./configure --prefix=/usr/local
make install

cd /tmp
cd DV
./configure --prefix=/usr/local
make install