Installation

From enGrid Wiki

(Difference between revisions)
Jump to: navigation, search
(Recommended Method (Linux))
(Made all commands wrapped between <tt></tt> for increased legibility. Also changed the phrasing for build on Windows.)
Line 17: Line 17:
## Ubuntu 11.04
## Ubuntu 11.04
-
Put the script into the folder where you want to install enGrid. When you execute the script, it will create a sub-folder named engrid where all sources, binaries, and scripts will be installed. For example: If your webrowser automatically puts the script into the folder ''/home/jonny/Download'', and you want enGrid to be inthe folder ''/home/jonny/Software/'', put the script into the folder ''/home/jonny/Software'' you need to issue the following commands to kick off the installation (provided that the folder ''/home/jonny/Software'' does not exist yet:
+
Put the script into the folder where you want to install enGrid. When you execute the script, it will create a sub-folder named engrid where all sources, binaries, and scripts will be installed. For example: If your webrowser automatically puts the script into the folder <tt>/home/jonny/Download</tt>, and you want enGrid to be in the folder <tt>/home/jonny/Software/</tt>, put the script into the folder <tt>/home/jonny/Software</tt> you need to issue the following commands to kick off the installation (provided that the folder <tt>/home/jonny/Software</tt> does not exist yet:
<pre>
<pre>
cd /home/jonny
cd /home/jonny
Line 40: Line 40:
# compile enGrid executable
# compile enGrid executable
-
Afterwards an optional set-up script can be called in order to create a start script in ''/usr/bin'' and a desktop file to be able to start enGrid from the graphical menu system.
+
Afterwards an optional set-up script can be called in order to create a start script in <tt>/usr/bin</tt> and a desktop file to be able to start enGrid from the graphical menu system.
<pre>
<pre>
engrid/setup_generic.bash
engrid/setup_generic.bash
</pre>
</pre>
-
'''IMPORTANT: Do not ''source'' this script -- otherwise it will not work correctly!'''
+
'''IMPORTANT: Do not <tt>source</tt> this script -- otherwise it will not work correctly!'''
-
Please note that this script is the same for all Linux distributions. The dedicated scripts (e.g. setup_opensuse.bash) are intended for binary packages.
+
Please note that this script is the same for all Linux distributions. The dedicated scripts (e.g. <tt>setup_opensuse.bash</tt>) are intended for binary packages.
== General Building Instructions ==
== General Building Instructions ==
Line 58: Line 58:
=== Building enGrid on a Fedora System ===
=== Building enGrid on a Fedora System ===
# '''install various packages (as root):'''
# '''install various packages (as root):'''
-
## yum install git
+
## <tt>yum install git</tt>
-
## yum install subversion
+
## <tt>yum install subversion</tt>
-
## yum install wget
+
## <tt>yum install wget</tt>
-
## yum install gcc-c++
+
## <tt>yum install gcc-c++</tt>
-
## yum install vtk-qt
+
## <tt>yum install vtk-qt</tt>
-
## yum install qt-devel
+
## <tt>yum install qt-devel</tt>
-
## yum install vtk-devel
+
## <tt>yum install vtk-devel</tt>
# '''clone git repository and checkout branch ''release-1.3:'''
# '''clone git repository and checkout branch ''release-1.3:'''
-
## git clone git://engrid.git.sourceforge.net/gitroot/engrid/engrid<br># or if you are behind a restrictive firewall<br>git clone http://repo.or.cz/r/engrid.git engrid
+
## <tt>git clone git://engrid.git.sourceforge.net/gitroot/engrid/engrid</tt><br># or if you are behind a restrictive firewall<br><tt>git clone <nowiki>http://repo.or.cz/r/engrid.git</nowiki> engrid</tt>
-
## cd engrid
+
## <tt>cd engrid</tt>
-
## git checkout -b release-1.3 remotes/origin/release-1.3
+
## <tt>git checkout -b release-1.3 remotes/origin/release-1.3</tt>
# '''setup environment variables:'''
# '''setup environment variables:'''
-
## cd src
+
## <tt>cd src</tt>
-
## source scripts/setup_pathes.bash fedora-15-64<br/>''(or fedora-15-32, fedora-14-64, fedora-14-32)
+
## <tt>source scripts/setup_pathes.bash fedora-15-64</tt><br/>(or <tt>fedora-15-32</tt>, <tt>fedora-14-64</tt>, <tt>fedora-14-32</tt>)
# '''build NETGEN library:'''
# '''build NETGEN library:'''
-
## scripts/build-nglib.sh
+
## <tt>scripts/build-nglib.sh</tt>
# ''' build enGrid library and executable:'''
# ''' build enGrid library and executable:'''
-
## cd libengrid
+
## <tt>cd libengrid</tt>
-
## qmake
+
## <tt>qmake</tt>
-
## make
+
## <tt>make</tt>
-
## cd ..
+
## <tt>cd ..</tt>
-
## qmake
+
## <tt>qmake</tt>
-
## make
+
## <tt>make</tt>
=== Building enGrid on an openSUSE 11.x system ===
=== Building enGrid on an openSUSE 11.x system ===
# '''add science repository and install various packages (as root):'''
# '''add science repository and install various packages (as root):'''
-
## zypper addrepo <nowiki>http://download.opensuse.org/repositories/science/openSUSE_11.4/</nowiki> science<br/>Make sure to set the correct version number for the repository (i.e. 11.2, 11.3, or 11.4)
+
## <tt>zypper addrepo <nowiki>http://download.opensuse.org/repositories/science/openSUSE_11.4/</nowiki> science</tt><br/>Make sure to set the correct version number for the repository (i.e. 11.2, 11.3, or 11.4)
-
## zypper install git-core
+
## <tt>zypper install git-core</tt>
-
## zypper install subversion
+
## <tt>zypper install subversion</tt>
-
## zypper install libqt4-devel
+
## <tt>zypper install libqt4-devel</tt>
-
## zypper install make
+
## <tt>zypper install make</tt>
-
## zypper install vtk-qt
+
## <tt>zypper install vtk-qt</tt>
-
## zypper install vtk-devel
+
## <tt>zypper install vtk-devel</tt>
# '''clone git repository and checkout branch ''release-1.3:'''
# '''clone git repository and checkout branch ''release-1.3:'''
-
## git clone git://engrid.git.sourceforge.net/gitroot/engrid/engrid<br># or if you are behind a restrictive firewall<br/>git clone http://repo.or.cz/r/engrid.git engrid
+
## <tt>git clone git://engrid.git.sourceforge.net/gitroot/engrid/engrid</tt><br># or if you are behind a restrictive firewall<br/><tt>git clone <nowiki>http://repo.or.cz/r/engrid.git</nowiki> engrid</tt>
-
## cd engrid
+
## <tt>cd engrid</tt>
-
## git checkout -b release-1.3 remotes/origin/release-1.3
+
## <tt>git checkout -b release-1.3 remotes/origin/release-1.3</tt>
# '''setup environment variables:'''
# '''setup environment variables:'''
-
## cd src
+
## <tt>cd src</tt>
-
## source scripts/setup_pathes.bash opensuse64<br/>or source scripts/setup_pathes.bash opensuse32 for a 32 bit system
+
## <tt>source scripts/setup_pathes.bash opensuse64</tt><br/>or <tt>source scripts/setup_pathes.bash opensuse32</tt> for a 32 bit system
# '''build NETGEN library:'''
# '''build NETGEN library:'''
-
## scripts/build-nglib.sh
+
## <tt>scripts/build-nglib.sh</tt>
# ''' build enGrid library and executable:'''
# ''' build enGrid library and executable:'''
-
## cd libengrid
+
## <tt>cd libengrid</tt>
-
## qmake
+
## <tt>qmake</tt>
-
## make
+
## <tt>make</tt>
-
## cd ..
+
## <tt>cd ..</tt>
-
## qmake
+
## <tt>qmake</tt>
-
## make
+
## <tt>make</tt>
=== Building enGrid on an Ubuntu system ===
=== Building enGrid on an Ubuntu system ===
# '''make sure that the ''universe'' repository is enabled:'''<br/>See [https://help.ubuntu.com/community/Repositories/Ubuntu https://help.ubuntu.com/community/Repositories/Ubuntu].
# '''make sure that the ''universe'' repository is enabled:'''<br/>See [https://help.ubuntu.com/community/Repositories/Ubuntu https://help.ubuntu.com/community/Repositories/Ubuntu].
# '''install various packages:'''
# '''install various packages:'''
-
## sudo apt-get install git
+
## <tt>sudo apt-get install git</tt>
-
## sudo apt-get install subversion
+
## <tt>sudo apt-get install subversion</tt>
-
## sudo apt-get install g++
+
## <tt>sudo apt-get install g++</tt>
-
## sudo apt-get install libvtk5-qt4-dev
+
## <tt>sudo apt-get install libvtk5-qt4-dev</tt>
-
## sudo apt-get install qt4-dev-tools
+
## <tt>sudo apt-get install qt4-dev-tools</tt>
# '''clone git repository and checkout branch ''release-1.3:'''
# '''clone git repository and checkout branch ''release-1.3:'''
-
## git clone git://engrid.git.sourceforge.net/gitroot/engrid/engrid<br># or if you are behind a restrictive firewall<br>git clone http://repo.or.cz/r/engrid.git engrid
+
## <tt>git clone git://engrid.git.sourceforge.net/gitroot/engrid/engrid</tt><br># or if you are behind a restrictive firewall<br><tt>git clone <nowiki>http://repo.or.cz/r/engrid.git</nowiki> engrid<tt>
-
## cd engrid
+
## <tt>cd engrid</tt>
-
## git checkout -b release-1.3 remotes/origin/release-1.3
+
## <tt>git checkout -b release-1.3 remotes/origin/release-1.3</tt>
# '''setup environment variables:'''
# '''setup environment variables:'''
-
## cd src
+
## <tt>cd src</tt>
-
## source scripts/setup_pathes.bash ubuntu
+
## <tt>source scripts/setup_pathes.bash ubuntu</tt>
# '''build NETGEN library:'''
# '''build NETGEN library:'''
-
## scripts/build-nglib.sh
+
## <tt>scripts/build-nglib.sh</tt>
# ''' build enGrid library and executable:'''
# ''' build enGrid library and executable:'''
-
## cd libengrid
+
## <tt>cd libengrid</tt>
-
## qmake
+
## <tt>qmake</tt>
-
## make
+
## <tt>make</tt>
-
## cd ..
+
## <tt>cd ..</tt>
-
## qmake
+
## <tt>qmake</tt>
-
## make
+
## <tt>make</tt>
=== Building enGrid on a Windows System ===
=== Building enGrid on a Windows System ===
-
This is a detailed description how to compile enGrid on a Windows system.<br/>[[Building/Windows|read more]]
+
This topic is very extensive, therefore the detailed description on how to compile enGrid on a Windows system is provided [[Building/Windows|here]].

Revision as of 20:29, 12 January 2012


Contents

Recommended Method (Linux)

The recommended installation method is to use the automatic build script which can be found on the SourceForge download page; alternatively you can use this direct link: build.bash.

This script offers easy configuration for the following systems:

  1. Fedora
    1. Fedora 14
    2. Fedora 15
  2. openSUSE
    1. openSUSE 11.2
    2. openSUSE 11.3
    3. openSUSE 11.4
  3. Ubuntu
    1. Ubuntu 10.10
    2. Ubuntu 11.04

Put the script into the folder where you want to install enGrid. When you execute the script, it will create a sub-folder named engrid where all sources, binaries, and scripts will be installed. For example: If your webrowser automatically puts the script into the folder /home/jonny/Download, and you want enGrid to be in the folder /home/jonny/Software/, put the script into the folder /home/jonny/Software you need to issue the following commands to kick off the installation (provided that the folder /home/jonny/Software does not exist yet:

cd /home/jonny
mkdir Software
cd Software
mv /home/jonny/Download/build.bash .
source build.bash

Afterwards the script will print a list of available configurations. Assuming you are installing enGrid onto an Ubuntu system, please type the following:

source build.bash ubuntu

The script will then ask you for the root password, because it needs to launch the system's package manager in order to install the required dependencies. The steps performed by this script are:

  1. install dependencies
    1. VTK >= 5.4
    2. Qt >= 4.5
    3. standard build environment (gcc, make, ...)
  2. fetch enGrid sources from GIT
  3. compile Netgen library
  4. compile enGrid library
  5. compile enGrid executable

Afterwards an optional set-up script can be called in order to create a start script in /usr/bin and a desktop file to be able to start enGrid from the graphical menu system.

engrid/setup_generic.bash

IMPORTANT: Do not source this script -- otherwise it will not work correctly!

Please note that this script is the same for all Linux distributions. The dedicated scripts (e.g. setup_opensuse.bash) are intended for binary packages.

General Building Instructions

Building enGrid is somewhat easy, but it's useful that the user already has some background in compiling and building software. The instructions provided here will not inform the user about every single aspect of building enGrid.

Since information about building enGrid can extend considerably, this subject will be divided into various topics.

Building enGrid on a Generic Linux System

This explains the general process of building enGrid on a Linux system; the information provided here is out of date and requires a serious revision.
read more

Building enGrid on a Fedora System

  1. install various packages (as root):
    1. yum install git
    2. yum install subversion
    3. yum install wget
    4. yum install gcc-c++
    5. yum install vtk-qt
    6. yum install qt-devel
    7. yum install vtk-devel
  2. clone git repository and checkout branch release-1.3:
    1. git clone git://engrid.git.sourceforge.net/gitroot/engrid/engrid
      # or if you are behind a restrictive firewall
      git clone http://repo.or.cz/r/engrid.git engrid
    2. cd engrid
    3. git checkout -b release-1.3 remotes/origin/release-1.3
  3. setup environment variables:
    1. cd src
    2. source scripts/setup_pathes.bash fedora-15-64
      (or fedora-15-32, fedora-14-64, fedora-14-32)
  4. build NETGEN library:
    1. scripts/build-nglib.sh
  5. build enGrid library and executable:
    1. cd libengrid
    2. qmake
    3. make
    4. cd ..
    5. qmake
    6. make

Building enGrid on an openSUSE 11.x system

  1. add science repository and install various packages (as root):
    1. zypper addrepo http://download.opensuse.org/repositories/science/openSUSE_11.4/ science
      Make sure to set the correct version number for the repository (i.e. 11.2, 11.3, or 11.4)
    2. zypper install git-core
    3. zypper install subversion
    4. zypper install libqt4-devel
    5. zypper install make
    6. zypper install vtk-qt
    7. zypper install vtk-devel
  2. clone git repository and checkout branch release-1.3:
    1. git clone git://engrid.git.sourceforge.net/gitroot/engrid/engrid
      # or if you are behind a restrictive firewall
      git clone http://repo.or.cz/r/engrid.git engrid
    2. cd engrid
    3. git checkout -b release-1.3 remotes/origin/release-1.3
  3. setup environment variables:
    1. cd src
    2. source scripts/setup_pathes.bash opensuse64
      or source scripts/setup_pathes.bash opensuse32 for a 32 bit system
  4. build NETGEN library:
    1. scripts/build-nglib.sh
  5. build enGrid library and executable:
    1. cd libengrid
    2. qmake
    3. make
    4. cd ..
    5. qmake
    6. make

Building enGrid on an Ubuntu system

  1. make sure that the universe repository is enabled:
    See https://help.ubuntu.com/community/Repositories/Ubuntu.
  2. install various packages:
    1. sudo apt-get install git
    2. sudo apt-get install subversion
    3. sudo apt-get install g++
    4. sudo apt-get install libvtk5-qt4-dev
    5. sudo apt-get install qt4-dev-tools
  3. clone git repository and checkout branch release-1.3:
    1. git clone git://engrid.git.sourceforge.net/gitroot/engrid/engrid
      # or if you are behind a restrictive firewall
      git clone http://repo.or.cz/r/engrid.git engrid<tt>
    2. <tt>cd engrid
    3. git checkout -b release-1.3 remotes/origin/release-1.3
  4. setup environment variables:
    1. cd src
    2. source scripts/setup_pathes.bash ubuntu
  5. build NETGEN library:
    1. scripts/build-nglib.sh
  6. build enGrid library and executable:
    1. cd libengrid
    2. qmake
    3. make
    4. cd ..
    5. qmake
    6. make

Building enGrid on a Windows System

This topic is very extensive, therefore the detailed description on how to compile enGrid on a Windows system is provided here.

Personal tools