Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

engrid+dependencies installation & update script
  • Mike October 2009
    A new script is available which allows installing engrid and its dependencies from source and updating/rebuidling it.

    =====
    It requires g++, cmake, zenity, git, svn, libxext/mesa development files.

    On Debian/Ubuntu:
    sudo apt-get install cmake zenity git-core subversion libxext-dev build-essential libxt-dev libglu1-mesa-dev

    On OpenSUSE:
    sudo zypper install cmake zenity git-core subversion xorg-x11-libXext-devel gcc "gcc-c++" xorg-x11-libXt-devel Mesa-devel

    On Fedora:
    yum install cmake zenity git-core subversion libXext-devel gcc "gcc-c++" libXt-devel mesa-libGLU-devel qt-devel wget
    ln -s /usr/bin/qmake-qt4 /usr/bin/qmake


    On Debian/Ubuntu (or any recent distro providing a version of Qt4 >4.5.0), you can skip the installation of QT4, by installing libqt4-dev from the repositories instead. Just make sure you set the variables in the config file accordingy. (should be QTPREFIX=/usr).
    Installing the Qt SDK (binary release) should also work, but hasn't been tested yet.

    =====

    Just download the following 2 files:
    engrid_installer_updater.sh
    engrid_installer_updater.cfg

    Change the configuration file "engrid_installer_updater.cfg" according to your needs.

    Make "engrid_installer_updater.sh" executable:
    chmod +x ./engrid_installer_updater.sh

    Then run "engrid_installer_updater.sh" and check the actions you wish to run:
    ./engrid_installer_updater.sh
    If you want to install to a non-user-writable directory:
    sudo ./engrid_installer_updater.sh

    IMPORTANT: Using the script can require up to 5.4 GB of diskspace!
    Size of the source directories after compilation:
    (Those directories can be removed after installation.)
    4.1G ~/engrid_install/
    3.9M ~/engrid_install/cgnslib_2.5/
    3.6G ~/engrid_install/qt-x11-opensource-src-4.5.2/
    308M ~/engrid_install/VTK/

    Size after installation:
    1.3G /opt/engits/
    12K /opt/engits/bin/
    668K /opt/engits/CGNS/
    1.2G /opt/engits/QT/
    58M /opt/engits/src/
    75M /opt/engits/VTK/


    Once installed, you can start engrid with the command (assuming default .cfg file):
    /opt/engits/bin/start_engrid
    This corresponds to BINPREFIX/START_ENGRID using the variables defined in the .cfg file.

    More info:

    DESCRIPTION:
    The script allows:
    -downloading, building and installing the dependencies for engrid
    -downloading, building and installing engrid
    -updating netgen
    -updating engrid
    -rebuilding engrid
    -generating an environment setup script that can then be sourced by ~/.bashrc
    -generating a startup script that sets up the environment and then starts engrid

    USAGE:
    First of all change the configuration file engrid_installer_updater.cfg according to your needs.
    Then you can run this script and choose the actions you wish to execute. Multiple actions can be run at once. They will be run in the order of the checklist.
    Note 1: Altough it should be enough to run create_bash_engrid once, it's recommended to run it every time to make sure the other actions use the correct environment.

    EXAMPLES
    Engrid installation:
    [X] create_bash_engrid
    [X] install_QT
    [X] install_VTK
    [X] install_CGNS
    [X] build_engrid
    [ ] update_netgen
    [ ] update_engrid
    [ ] rebuild_engrid
    [X] create_start_engrid

    Engrid update:
    [X] create_bash_engrid
    [ ] install_QT
    [ ] install_VTK
    [ ] install_CGNS
    [ ] build_engrid
    [X] update_netgen
    [X] update_engrid
    [ ] rebuild_engrid
    [ ] create_start_engrid

    Engrid rebuild:
    [X] create_bash_engrid
    [ ] install_QT
    [ ] install_VTK
    [ ] install_CGNS
    [ ] build_engrid
    [ ] update_netgen
    [ ] update_engrid
    [X] rebuild_engrid
    [ ] create_start_engrid

    Additional notes:
    The script is written in a way to bypass the licence acceptance question from the QT configure script (Chooses open-source edition and answers yes to license question).
    This means that if you use it to install QT, you automatically accept the GPL v3 and LGPL v2.1!
    We will change this eventually in the future, but for now this is a simple solution and we're assuming that you won't use the QT libraries installed in this way in proprietary applications.
  • Mike October 2009
    The script has been tested successfully on clean installs of Ubuntu 9.04 and OpenSUSE 10.3 running in virtual machines.
  • JGoebel November 2009

    "Mike":

    The script has been tested successfully on clean installs of Ubuntu 9.04 and OpenSUSE 10.3 running in virtual machines.

    "JGoebel":

    I tested the script on a Fedora Core 11 installation and it just works fine. Great work !
  • fulkrum November 2009
    Hi! The script seemd to work fine, also with UBUNTU 9.10 64 bit.
    Unfortunately, after everything was going fine in the previous steps, at the stage "build enGRID", i received:

    + git clone git://78.140.120.226/git/engrid.git
    Initialized empty Git repository in /opt/engits/src/engrid/.git/
    78.140.120.226[0: 78.140.120.226]: errno=Connection timed out
    fatal: unable to connect a socket (Connection timed out)


    I not an expert, so just excuse me if the solution is straightforward.
    I think is aproblem of firewall (i am behind a "Firma"'s on).
    WHich ports should be opened eventually?

    Rauno

    P.S. i really appreciate enGRID project. I hope that it will soon fill the gap in an opensource process (Cad- meshing - cfd - postprocessing).
  • Mike November 2009
    It failed to get the engrid source code.
    Try rerunning just "create_bash_engrid" and "build_engrid".

    If it fails again, change the URL_ENGRID line in the .cfg script from:
    URL_ENGRID="git://78.140.120.226/git/engrid.git"
    to:
    URL_ENGRID="http://engits.com/git/engrid.git"
    and try running the script again with just "create_bash_engrid" and "build_engrid".
  • fulkrum November 2009
    It works fine know! Thank you very much.
    You can delete my post, and eventually, add the suggestion in the main post !
    Ubuntu 9.10 64bit --> installed!
This discussion has been closed.
← All Discussions