Installation:Linux

From GeopsyWiki
Jump to navigation Jump to search

Distribution packages

(not yet available)

The easiest and fastest way to install geopsy, dinver and other applications is to use the packaging system specific to your Linux distribution, if available. This binary distribution has been introduced at the end of year 2008. Currently only a few distributions are supported:

Compilation from sources

This is the primary distribution method always available as a backup if the binary method fails or is not available for your Linux system.

gcc

A decent gcc version is required primarily for Qt. The recommended versions are listed here. To check the version of your compiler:

 gcc --version
 #  gcc (GCC) 4.1.1 (Gentoo 4.1.1-r3)
 #  Copyright (C) 2006 Free Software Foundation, Inc.

Fortran support is required. Some codes written in Fortran are included (less than 0.1% of the total).

Qt

Qt libraries and development tools must be available. Only Qt releases posterior or equal to 4.5.0 are supported. To test if Qt is already installed:

 qmake -version
 #  QMake version 2.01a
 #  Using Qt version 4.5.0 in /usr/lib64/qt4
 lupdate -version
 #  lupdate version 4.5.0

If Qt 4.5.0 (or a more recent version) is installed, you can jump directly to Lapack. If not you must first install Qt.

Lapack

Linear Algebra PACKage.

Lapack >= 3.0 is required. The best option is to install the package shipped with your distribution.

  • ubuntu: lapack3-dev
  • Fedora:
  • openSUSE:
  • gentoo: sci-libs/lapack

Note: this external dependency is required for all releases >= 2.1.0. For all previous releases, 'Lapack' libraries were shipped with Geopsy packages.

FFTW

Fastest Fourier Transform of the West.

fftw >= 3.0.1 is required. The best option is to install the package shipped with your distribution.

  • ubuntu: libfftw3-dev
  • Fedora:
  • openSUSE:
  • gentoo: sci-libs/fftw

Note: this external dependency is required for all releases >= 2.1.0. For all previous releases, 'FFTW' libraries were shipped with Geopsy packages.

Download

Your platform is now ready for the compilation Geopsy packages themselves. First download the correct archive.

Compilation

Extract files from dowloaded archive.

 tar xvfpz geopsypack-XXitems-src.tar.gz

Enter the source directory and configure. '-prefix' option defines the installation directory.

 cd geopsypack-XXitems-src
 ./configure -prefix /usr/local/Geopsy.org

Other options are documented with option '-h' or '-help'.

 ./configure -h

If successful, you can compile.

 make

It takes from a few minutes up to 20 minutes if the full list of packages are included. It also depends on your computer performances. Finally, you can install the packages, usually reauiring root permissions (through su or sudo)

 sudo make install

To finish the installation, make sure that the destination directory is listed in your PATH

 echo $PATH

In ~/.profile (if your shell is bash, ksh, zsh or sh), add the following lines:

 export PATH=/usr/local/Geopsy.org/bin:$PATH

For bash, ~/.bashrc is also of common usage

In ~/.login (in case your shell is csh or tcsh), add the following line:

 setenv PATH /usr/local/Geopsy.org/bin:$PATH

If you use a different shell, please modify your environment variables accordingly.