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.

NOTE: as of June 2021, a security patch in X11 has exacerbated a bug in xforms which causes the DV GUI to crash randomly on Ubuntu systems. In order to get it working properly you should only use Matt's patched version of xforms v.1.2.4 available from the FTP site
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.2.4/xforms-1.2.4.tar.gz
tar zxf xforms-1.2.4.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.2.4
#sudo xmkmf -a
#sudo make install
sudo configure
sudo make
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