How to install ParaView 5.2 on Ubuntu 16.04

Install ParaView from Ubuntu repositories

Installing ParaView with the command

sudo apt-get install paraview

results in an earlier version (5.01.) of ParaView. You might want to upgrade to 5.2. but the Ubuntu repositories don’t have the latest version.

First remove the old version, then follow the instructions below:

sudo remove paraview

Install ParaView 5.2.

Install

To install the latest stable version we can use the binaries from the website. This will work for earlier Ubuntu versions and earlier versions of ParaView as well.

    1. Download the binaries from http://www.paraview.org. For me this results in: ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit.tar.gz
    2. Extract and copy them:

      tar xzvf -C /opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit.tar.gz
      sudo gedit ~/.bashrc

    3. then insert the following line, save & close

      export PATH=$PATH:/opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/bin/

From now you can run ParaView with /opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/bin/paraview.

Create symbolic links

To be able to run ParaView with the command “paraview” in terminal, symbolic links should be created.

sudo ln -s /opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/bin/paraview /usr/bin/paraview

sudo ln -s /opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/lib/paraview-5.2/ /usr/lib/paraview-5.2

Create launcher icon

Now ParaView can be run from terminal with the command “paraview” and it can be locked to the Launcher, but the icon is missing. To resolve the problem type in terminal

sudo gedit /usr/share/applications/paraview.desktop

then insert the following:

[Desktop Entry]
Version=1.0
Name=ParaView 5.2.

Exec=paraview
Terminal=false
Icon=/opt/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/share/icons/hicolor/96×96/apps/paraview.png
Type=Application
x-Ayatana-Desktop-Shortcuts=NewWindow

[NewWindow Shortcut Group]
Name=New Window
Exec=paraview
TargetEnvironment=Unity

save & quit & restart the computer.

After restart, paraview can be launched from the terminal and locked to the Launcher.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s